restify album view

This commit is contained in:
thomas girod committed 2024-08-08 11:50:45 +02:00
1 parent 0b9ccf6a57
commit da6bd84cdf
7 files changed
+75 -61

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ class PicturesController(ControllerBase):
Picture.objects.filter(is_moderated=True, asked_for_removal=False)
)
.distinct()
.order_by("-date")
.order_by("-parent__date", "date")
.annotate(album=F("parent__name"))
)