Skip to content

Commit

Permalink
feat(models): add str method to PersonNameMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed Mar 18, 2024
1 parent 653385d commit 0341881
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class PersonNameMixin(AlternativeNameMixin, models.Model):
class Meta:
abstract = True

def __str__(self):
return self.full_name()

def full_name(self):
full_name = ""
surname = self.surname
Expand Down

0 comments on commit 0341881

Please sign in to comment.