SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit f0fbd081 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add default sorting to profile objects to avoid list issues

parent 78e80b0c
No related branches found
No related tags found
No related merge requests found
# 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']},
),
]
...@@ -90,7 +90,7 @@ class Profile(models.Model): ...@@ -90,7 +90,7 @@ class Profile(models.Model):
objects = ProfileQuerySet.as_manager() objects = ProfileQuerySet.as_manager()
class Meta: class Meta:
ordering = ["last_name"] ordering = ["last_name", "first_name"]
def __str__(self): def __str__(self):
return "%s, %s %s" % ( return "%s, %s %s" % (
......
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