Skip to content
Extraits de code Groupes Projets
Valider ab544418 rédigé par Yohan Boniface's avatar Yohan Boniface
Parcourir les fichiers

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

parent 3ce48d43
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter