File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Generated by Django 5.2 on 2025-08-11 01:10
2+
3+ from django .conf import settings
4+ from django .db import migrations , models
5+
6+
7+ class Migration (migrations .Migration ):
8+ dependencies = [
9+ ("event" , "0003_alter_event_name_alter_event_name_en_and_more" ),
10+ ("sponsor" , "0015_alter_sponsor_options" ),
11+ migrations .swappable_dependency (settings .AUTH_USER_MODEL ),
12+ ]
13+
14+ operations = [
15+ migrations .AlterModelOptions (
16+ name = "sponsor" ,
17+ options = {"ordering" : ["-fixed_at" , "name" ]},
18+ ),
19+ migrations .AddIndex (
20+ model_name = "sponsor" ,
21+ index = models .Index (fields = ["event" , "fixed_at" ], name = "idx__spsr__event_fixed_at" ),
22+ ),
23+ ]
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ class Sponsor(BaseAbstractModel):
1919 fixed_at = models .DateTimeField (null = True , blank = True )
2020
2121 class Meta :
22- ordering = ["name" , "-fixed_at" ]
22+ ordering = ["-fixed_at" , "name" ]
23+ indexes = [models .Index (fields = ["event" , "fixed_at" ], name = "idx__spsr__event_fixed_at" )]
2324 constraints = [
2425 models .UniqueConstraint (
2526 fields = ["event" , "name" ],
You can’t perform that action at this time.
0 commit comments