Skip to content
Snippets Groups Projects
Commit 68b68430 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Provide full_name property for persons.

parent 851ac83f
No related branches found
No related tags found
No related merge requests found
...@@ -105,9 +105,13 @@ class Person(SchoolRelated): ...@@ -105,9 +105,13 @@ class Person(SchoolRelated):
defaults={'name': value}) defaults={'name': value})
self.primary_group = group self.primary_group = group
def __str__(self) -> str: @property
def full_name(self) -> str:
return '%s, %s' % (self.last_name, self.first_name) return '%s, %s' % (self.last_name, self.first_name)
def __str__(self) -> str:
return self.full_name
class Group(SchoolRelated): class Group(SchoolRelated):
"""Any kind of group of persons in a school, including, but not limited """Any kind of group of persons in a school, including, but not limited
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment