Skip to content

Commit

Permalink
fix(models): change str method to return name instead of customer_name
Browse files Browse the repository at this point in the history
Closes(#18)
  • Loading branch information
ARYAN-NIKNEZHAD committed Oct 28, 2024
1 parent ca0e56a commit 2ff5802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sage_invoice/models/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class CustomerProfile(models.Model):
)

def __str__(self):
return f"{self.customer_name} ({self.company_name})" if self.company_name else self.customer_name
return f"{self.name} ({self.company_name})" if self.company_name else self.name

class Meta:
verbose_name = _("Customer Profile")
Expand Down

0 comments on commit 2ff5802

Please sign in to comment.