membershipworks: Sort flags by name by default

This commit is contained in:
Adam Goldsmith 2023-01-20 13:16:47 -05:00
parent 03ccf73d81
commit 068a5f1ccd
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.1.3 on 2023-01-24 02:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("membershipworks", "0001_initial"),
]
operations = [
migrations.AlterModelOptions(
name="flag",
options={"managed": False, "ordering": ("name",)},
),
]

View File

@ -15,6 +15,7 @@ class Flag(models.Model):
class Meta: class Meta:
managed = False managed = False
db_table = "flag" db_table = "flag"
ordering = ("name",)
class MemberQuerySet(models.QuerySet): class MemberQuerySet(models.QuerySet):