Skip to content

Commit d50676c

Browse files
authored
Merge pull request #28 from pythonkr/fix/fixed-at
fix: fixed_at 최신순으로 변경
2 parents 1f4aa43 + 7d24042 commit d50676c

File tree

2 files changed

+17
-1
lines changed

2 files changed

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

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 = ["name", "fixed_at"]
22+
ordering = ["name", "-fixed_at"]
2323
constraints = [
2424
models.UniqueConstraint(
2525
fields=["event", "name"],

0 commit comments

Comments
 (0)