diff --git a/georiviere/portal/migrations/0009_auto_20240430_1309.py b/georiviere/portal/migrations/0009_auto_20240430_1309.py new file mode 100644 index 00000000..4028b3c5 --- /dev/null +++ b/georiviere/portal/migrations/0009_auto_20240430_1309.py @@ -0,0 +1,17 @@ +# Generated by Django 3.1.14 on 2024-04-30 13:09 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('portal', '0008_auto_20240429_1233'), + ] + + operations = [ + migrations.AlterModelOptions( + name='mapbaselayer', + options={'ordering': ('order',), 'verbose_name': 'Map base layer', 'verbose_name_plural': 'Map base layers'}, + ), + ] diff --git a/georiviere/portal/models.py b/georiviere/portal/models.py index 01739d9e..69407f51 100644 --- a/georiviere/portal/models.py +++ b/georiviere/portal/models.py @@ -24,7 +24,7 @@ class MapBaseLayer(models.Model): class Meta: verbose_name = _("Map base layer") verbose_name_plural = _("Map base layers") - ordering = ('label',) + ordering = ('order',) unique_together = ('label', 'portal') def __str__(self):