mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-13 11:35:44 +00:00
Migrate albums and pictures to their own tables
This commit is contained in:
@@ -103,7 +103,7 @@ class PicturesController(ControllerBase):
|
||||
return (
|
||||
filters.filter(Picture.objects.viewable_by(user))
|
||||
.distinct()
|
||||
.order_by("-parent__date", "date")
|
||||
.order_by("-parent__event_date", "created_at")
|
||||
.select_related("owner", "parent")
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user