Allow user to scroll until 50 maps on its page (instead of 50)

This commit is contained in:
Yohan Boniface 2014-04-28 16:13:28 +02:00
parent 3ce48d43d6
commit ab5444184f

View file

@ -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