Skip to content

Commit 2a0e6d8

Browse files
committed
Change ordering in Meta class to descending publish and title ascending
1 parent 283c01a commit 2a0e6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Post(models.Model):
9494
class Meta:
9595
verbose_name: str = "post"
9696
verbose_name_plural: str = "posts"
97-
ordering: list = ["-updated", "-title"]
97+
ordering: list = ["-publish", "title"]
9898

9999
def __repr__(self) -> str:
100100
return "<Post %r>" % self.title

0 commit comments

Comments
 (0)