Fix ordering if no publish date

master
Gabriel Augendre 5 months ago
parent a0158944b4
commit 297336f955
  1. 2
      src/articles/models.py

@ -76,7 +76,7 @@ class Article(models.Model):
tags = models.ManyToManyField(to=Tag, related_name="articles", blank=True)
class Meta:
ordering = ["-published_at"]
ordering = ["-published_at", "-updated_at"]
def __str__(self) -> str:
return self.title

Loading…
Cancel
Save