Update umap/views.py
Co-authored-by: David Larlet <3556+davidbgk@users.noreply.github.com>
This commit is contained in:
parent
43e5391c49
commit
f6730a9829
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue