diff --git a/wiki_groups/templates/wiki_groups/managed.html b/wiki_groups/templates/wiki_groups/managed.html
index 4935b0e..2a4b3e8 100644
--- a/wiki_groups/templates/wiki_groups/managed.html
+++ b/wiki_groups/templates/wiki_groups/managed.html
@@ -6,9 +6,9 @@
Liste des groupes administrés
-{% if wikigroups %}
+{% if wikigroup_list %}
- {% for group in wikigroups %}
+ {% for group in wikigroup_list %}
{{ group }}
{% endfor %}
diff --git a/wiki_groups/views.py b/wiki_groups/views.py
index d7076f6..afda14f 100644
--- a/wiki_groups/views.py
+++ b/wiki_groups/views.py
@@ -67,10 +67,13 @@ class ManagedGroupsView(LoginRequiredMixin, ListView):
def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
- ctx["wikigroups"] = set()
+ wikigroups = set()
for group in ctx["wikigroup_list"]:
- ctx["wikigroups"] |= group.get_all_groups()
+ wikigroups |= group.get_all_groups()
+
+ ctx["wikigroup_list"] = wikigroups
+ ctx["object_list"] = wikigroups
return ctx