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

Add string representation for persons.

parent c7bf15c7
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,6 @@ from django.db import models
class Person(AbstractUser):
is_student = models.BooleanField(default=False)
is_teacher = models.BooleanField(default=False)
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