From 034188129a676ec038b8e2874c40baf8c07b0534 Mon Sep 17 00:00:00 2001 From: KK Date: Mon, 18 Mar 2024 10:55:20 +0100 Subject: [PATCH] feat(models): add str method to PersonNameMixin --- apis_ontology/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis_ontology/models.py b/apis_ontology/models.py index 8fa6741..9a368f6 100644 --- a/apis_ontology/models.py +++ b/apis_ontology/models.py @@ -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