mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
fix the pictures order (not just the album)
This commit is contained in:
parent
b3fa6f352b
commit
d348e6314a
@ -314,7 +314,7 @@ class UserPicturesView(UserTabsMixin, CanViewMixin, DetailView):
|
||||
kwargs = super().get_context_data(**kwargs)
|
||||
kwargs["pictures"] = list(
|
||||
Picture.objects.filter(people__user_id=self.object.id)
|
||||
.order_by("-parent__date", "id")
|
||||
.order_by("-parent__date", "-date")
|
||||
.annotate(album=F("parent__name"))
|
||||
)
|
||||
return kwargs
|
||||
|
Loading…
Reference in New Issue
Block a user