feat: sort people by name

Resolves #71
This commit is contained in:
James Graham
2021-02-08 15:03:06 +00:00
parent c102cbf091
commit a24f5157cd
2 changed files with 20 additions and 0 deletions

View File

@@ -119,6 +119,9 @@ class Person(models.Model):
"""
class Meta:
verbose_name_plural = 'people'
ordering = [
'name',
]
#: User account belonging to this person
user = models.OneToOneField(settings.AUTH_USER_MODEL,