Skip to content
Snippets Groups Projects
Commit 98ee7292 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 #163072 passed
# Generated by Django 4.1.9 on 2023-05-15 18:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0057_upgrades'),
]
operations = [
migrations.AlterModelOptions(
name='ak',
options={'ordering': ['pk'], 'verbose_name': 'AK', 'verbose_name_plural': 'AKs'},
),
]
...@@ -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