mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
restify album view
This commit is contained in:
1 parent
0b9ccf6a57
commit
da6bd84cdf
7 files changed
+75
-61
No files matched your search
+1
-1
@@ -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"))
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user