From 36692c7a1dc2f205bd81430a41abaa48a6ccb73c Mon Sep 17 00:00:00 2001 From: Anders Severinsen Date: Wed, 6 Nov 2024 20:10:38 +0100 Subject: [PATCH] Updated ordering --- gallery/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery/models.py b/gallery/models.py index 858c569..7b71294 100644 --- a/gallery/models.py +++ b/gallery/models.py @@ -26,7 +26,7 @@ @python_2_unicode_compatible class Album(models.Model): class Meta: - ordering = ["year", "-eventalbum", "oldFolder", "publish_date"] + ordering = ["year", "-eventalbum", "oldFolder", "-publish_date"] unique_together = (("year", "slug"),) title = models.CharField(max_length=200, verbose_name=_("Titel"))