diff --git a/scipost_django/profiles/migrations/0036_alter_profile_options.py b/scipost_django/profiles/migrations/0036_alter_profile_options.py new file mode 100644 index 0000000000000000000000000000000000000000..de9f7751fee21600687edf180488d67cdc04de67 --- /dev/null +++ b/scipost_django/profiles/migrations/0036_alter_profile_options.py @@ -0,0 +1,17 @@ +# Generated by Django 3.2.18 on 2023-12-01 12:50 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('profiles', '0035_alter_profile_title'), + ] + + operations = [ + migrations.AlterModelOptions( + name='profile', + options={'ordering': ['last_name', 'first_name']}, + ), + ] diff --git a/scipost_django/profiles/models.py b/scipost_django/profiles/models.py index bf79489e8a6aa548bbdb43289e589ab5e54d62a1..5210cf554ee6afd16a52d66ce33a1b684850c3b7 100644 --- a/scipost_django/profiles/models.py +++ b/scipost_django/profiles/models.py @@ -90,7 +90,7 @@ class Profile(models.Model): objects = ProfileQuerySet.as_manager() class Meta: - ordering = ["last_name"] + ordering = ["last_name", "first_name"] def __str__(self): return "%s, %s %s" % (