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

Add guardians relationship to Person.

parent 8bc3345c
No related branches found
No related tags found
No related merge requests found
......@@ -26,5 +26,8 @@ class Person(AbstractUser):
import_ref = models.CharField(max_length=64)
guardians = models.ManyToManyField(
'self', symmetrical=False, related_name='children')
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