fix: sort organisations by name within groups

Resolves #115
This commit is contained in:
James Graham
2021-05-09 13:53:07 +01:00
parent 4e87176c17
commit 7f01bff993
2 changed files with 20 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ class OrganisationQuestionChoice(QuestionChoice):
class Organisation(models.Model):
"""Organisation to which a :class:`Person` belongs."""
class Meta:
ordering = ['name']
name = models.CharField(max_length=255, blank=False, null=False)
def __str__(self) -> str: