We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f4aa43 + 7d24042 commit d50676cCopy full SHA for d50676c
app/event/sponsor/migrations/0015_alter_sponsor_options.py
@@ -0,0 +1,16 @@
1
+# Generated by Django 5.2 on 2025-08-05 12:04
2
+
3
+from django.db import migrations
4
5
6
+class Migration(migrations.Migration):
7
+ dependencies = [
8
+ ("sponsor", "0014_alter_sponsor_options_historicalsponsor_fixed_at_and_more"),
9
+ ]
10
11
+ operations = [
12
+ migrations.AlterModelOptions(
13
+ name="sponsor",
14
+ options={"ordering": ["name", "-fixed_at"]},
15
+ ),
16
app/event/sponsor/models.py
@@ -19,7 +19,7 @@ class Sponsor(BaseAbstractModel):
19
fixed_at = models.DateTimeField(null=True, blank=True)
20
21
class Meta:
22
- ordering = ["name", "fixed_at"]
+ ordering = ["name", "-fixed_at"]
23
constraints = [
24
models.UniqueConstraint(
25
fields=["event", "name"],
0 commit comments