We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9225866 commit 03c1df6Copy full SHA for 03c1df6
2 files changed
app/event/sponsor/migrations/0017_alter_sponsor_options.py
@@ -0,0 +1,14 @@
1
+# Generated by Django 5.2 on 2025-08-11 01:15
2
+
3
+from django.db import migrations
4
5
6
+class Migration(migrations.Migration):
7
+ dependencies = [("sponsor", "0016_alter_sponsor_options_and_more")]
8
9
+ operations = [
10
+ migrations.AlterModelOptions(
11
+ name="sponsor",
12
+ options={"ordering": ["fixed_at", "name"]},
13
+ ),
14
+ ]
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 = ["-fixed_at", "name"]
+ ordering = ["fixed_at", "name"]
23
indexes = [models.Index(fields=["event", "fixed_at"], name="idx__spsr__event_fixed_at")]
24
constraints = [
25
models.UniqueConstraint(
0 commit comments