From b9cb3a829074ea56a54d2bcb85856ec23542b1b7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 10 Feb 2014 17:52:49 +0100 Subject: [PATCH] Do not take default center in showcase --- umap/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/views.py b/umap/views.py index b8e153d5..79888678 100644 --- a/umap/views.py +++ b/umap/views.py @@ -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")