diff --git a/biscuit/core/models.py b/biscuit/core/models.py index e40b4e968cd23ad14376afb6b204458253fe8d0f..ef61eb5f72cbc7dfbfa789ab682e756246f10d73 100644 --- a/biscuit/core/models.py +++ b/biscuit/core/models.py @@ -105,9 +105,13 @@ class Person(SchoolRelated): defaults={'name': value}) self.primary_group = group - def __str__(self) -> str: + @property + def full_name(self) -> str: return '%s, %s' % (self.last_name, self.first_name) + def __str__(self) -> str: + return self.full_name + class Group(SchoolRelated): """Any kind of group of persons in a school, including, but not limited