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

Add a field for the primary group of a person.

parent 142298e8
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,8 @@ class Person(SchoolRelated):
guardians = models.ManyToManyField('self', verbose_name=_('Guardians / Parents'),
symmetrical=False, related_name='children')
primary_group = models.ForeignKey('Group', models.SET_NULL)
def __str__(self):
return '%s, %s' % (self.last_name, self.first_name)
......
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