Skip to content

Commit 03c1df6

Browse files
committed
fix: 후원사가 역순으로 정렬되는 문제 수정
1 parent 9225866 commit 03c1df6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Sponsor(BaseAbstractModel):
1919
fixed_at = models.DateTimeField(null=True, blank=True)
2020

2121
class Meta:
22-
ordering = ["-fixed_at", "name"]
22+
ordering = ["fixed_at", "name"]
2323
indexes = [models.Index(fields=["event", "fixed_at"], name="idx__spsr__event_fixed_at")]
2424
constraints = [
2525
models.UniqueConstraint(

0 commit comments

Comments
 (0)