Allow user to scroll until 50 maps on its page (instead of 50)
This commit is contained in:
parent
3ce48d43d6
commit
ab5444184f
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class UserMaps(DetailView, PaginatorMixin):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
manager = Map.objects if self.request.user == self.object else Map.public
|
||||
maps = manager.filter(Q(owner=self.object) | Q(editors=self.object)).distinct().order_by('-modified_at')[:30]
|
||||
maps = manager.filter(Q(owner=self.object) | Q(editors=self.object)).distinct().order_by('-modified_at')[:50]
|
||||
maps = self.paginate(maps)
|
||||
kwargs.update({
|
||||
"maps": maps
|
||||
|
|
Loading…
Reference in a new issue