Skip to content

Commit a699e4a

Browse files
Order Contributors alphabetically (#195)
1 parent dcec0a4 commit a699e4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class Contributor(index.Indexed, models.Model):
7272
search_fields = [index.SearchField("name", partial_match=True)]
7373

7474
autocomplete_search_field = "name"
75+
76+
class Meta:
77+
ordering = ['name']
7578

7679
def autocomplete_label(self):
7780
return self.name

0 commit comments

Comments
 (0)