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

@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2021-02-08 15:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('people', '0032_personquestion_answer_is_public'),
]
operations = [
migrations.AlterModelOptions(
name='person',
options={'ordering': ['name'], 'verbose_name_plural': 'people'},
),
]

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,