From f6730a9829fed9398362817dc1db9edc94d47666 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 20 Sep 2023 15:17:29 +0200 Subject: [PATCH] Update umap/views.py Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com> --- umap/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/views.py b/umap/views.py index 73c98028..c42a5ead 100644 --- a/umap/views.py +++ b/umap/views.py @@ -275,7 +275,7 @@ class UserDashboard(PaginatorMixin, DetailView, SearchMixin): def get_maps(self): qs = self.get_search_queryset() or Map.objects.all() - qs = qs.filter(owner=self.object).union(qs.filter(editors=self.object)) + qs = qs.union(qs.filter(owner=self.object), qs.filter(editors=self.object)) return qs.order_by("-modified_at") def get_context_data(self, **kwargs):