membershipworks: Sort flags by name by default
This commit is contained in:
parent
03ccf73d81
commit
068a5f1ccd
17
membershipworks/migrations/0002_alter_flag_options.py
Normal file
17
membershipworks/migrations/0002_alter_flag_options.py
Normal 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",)},
|
||||||
|
),
|
||||||
|
]
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user