Do not take default center in showcase

This commit is contained in:
Yohan Boniface 2014-02-10 17:52:49 +01:00
parent 452270724a
commit b9cb3a8290

View file

@ -142,7 +142,7 @@ search = Search.as_view()
class MapsShowCase(View):
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):
description = u"{}\n\n[[{}|{}]]".format(m.description or "", m.get_absolute_url(), "View the map")