Skip to content

Commit

Permalink
Merge pull request #19 from ARYAN-NIKNEZHAD/bug/models
Browse files Browse the repository at this point in the history
fix(models): change str method to return name instead of customer_name
  • Loading branch information
sepehr-akbarzadeh authored Oct 29, 2024
2 parents ca0e56a + 2ff5802 commit 76a0486
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 76a0486

Please sign in to comment.