Skip to content
Snippets Groups Projects
Commit 3433b4ca authored by Benjamin Hättasch's avatar Benjamin Hättasch Committed by Nadja Geisler
Browse files

Explicitly set AK ordering (by PK)

parent c42ef9a9
No related branches found
No related tags found
1 merge request!165Explicitly set AK ordering (by PK)
Pipeline #163075 failed
This commit is part of merge request !165. Comments created here will be created in the context of that merge request.
# 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):
verbose_name = _('AK')
verbose_name_plural = _('AKs')
unique_together = [['event', 'name'], ['event', 'short_name']]
ordering = ['pk']
def __str__(self):
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