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):