From 3c76c5e0f14551ac64b4d13e0c036ae3b6349bc1 Mon Sep 17 00:00:00 2001 From: thomas girod Date: Thu, 25 Jul 2024 18:00:20 +0200 Subject: [PATCH] fix grouping --- core/templates/core/user_pictures.jinja | 4 ++-- core/views/user.py | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/core/templates/core/user_pictures.jinja b/core/templates/core/user_pictures.jinja index f2cf2308..522200d4 100644 --- a/core/templates/core/user_pictures.jinja +++ b/core/templates/core/user_pictures.jinja @@ -22,10 +22,10 @@ {% if can_edit(profile, user) %} {% endif %} - {% for album, album_pictures in pictures|groupby("album") %} + {% for album, pictures in albums|items %}

{{ album }}

- {% for picture in album_pictures %} + {% for picture in pictures %} {% if picture.can_be_viewed_by(user) %}