Do not take default center in showcase
This commit is contained in:
parent
452270724a
commit
b9cb3a8290
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue