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

Do not take default center in showcase

parent 45227072
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -142,7 +142,7 @@ search = Search.as_view() ...@@ -142,7 +142,7 @@ search = Search.as_view()
class MapsShowCase(View): class MapsShowCase(View):
def get(*args, **kargs): def get(*args, **kargs):
maps = Map.public.order_by('-modified_at')[:2000] maps = Map.public.filter(center__distance_gt=(DEFAULT_CENTER, D(km=1))).order_by('-modified_at')[:2000]
def make(m): def make(m):
description = u"{}\n\n[[{}|{}]]".format(m.description or "", m.get_absolute_url(), "View the map") description = u"{}\n\n[[{}|{}]]".format(m.description or "", m.get_absolute_url(), "View the map")
......
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