Skip to content
Snippets Groups Projects

Explicitly set AK ordering (by PK)

Merged Benjamin Hättasch requested to merge fix-ak-order into main
+ 1
0
@@ -286,6 +286,7 @@ class AK(models.Model):
verbose_name = _('AK')
verbose_name_plural = _('AKs')
unique_together = [['event', 'name'], ['event', 'short_name']]
ordering = ['pk']
def __str__(self):
if self.short_name:
Loading