Skip to content
Snippets Groups Projects
Commit acf729b9 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Explicitly set AK ordering (by PK)

parent ca468556
No related branches found
No related tags found
No related merge requests found
Pipeline #163068 failed
...@@ -286,6 +286,7 @@ class AK(models.Model): ...@@ -286,6 +286,7 @@ class AK(models.Model):
verbose_name = _('AK') verbose_name = _('AK')
verbose_name_plural = _('AKs') verbose_name_plural = _('AKs')
unique_together = [['event', 'name'], ['event', 'short_name']] unique_together = [['event', 'name'], ['event', 'short_name']]
ordering = ['pk']
def __str__(self): def __str__(self):
if self.short_name: if self.short_name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment