fix: sort organisations by name within groups

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

No files matched your search

+3
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: