From f30835b1fa76cb09f159dee2c5a1444083f569cb Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 1 Sep 2011 07:44:49 +0530 Subject: [PATCH] argh, wrong search_related view function; commented out unneeded function / view / url --- gazetteer/places/views.py | 6 ++++-- gazetteer/urls.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gazetteer/places/views.py b/gazetteer/places/views.py index 8f6772c..6422e89 100644 --- a/gazetteer/places/views.py +++ b/gazetteer/places/views.py @@ -59,6 +59,7 @@ def search_json(request): ''' This function will be removed. No need for this page. ''' +''' def search_related(request): id = request.GET.get("id", "0") feature = get_object_or_404(Feature, pk=id) @@ -78,7 +79,7 @@ def search_related(request): 'feature': feature, 'similar_features': d }) - +''' def search_related_json(request, id): # id = request.GET.get("id", "0") @@ -102,7 +103,8 @@ def search_related_json(request, id): 'similarity': s.similarity, 'distance': s.distance, 'time_frame': time_frame, - 'is_primary': s.is_primary + 'is_primary': s.is_primary, + 'relationship': '' }) return render_to_json_response(d) diff --git a/gazetteer/urls.py b/gazetteer/urls.py index c106ec3..631e731 100644 --- a/gazetteer/urls.py +++ b/gazetteer/urls.py @@ -12,7 +12,7 @@ urlpatterns = patterns('', (r'^$', 'places.views.search'), ('^search$', 'places.views.search'), ('^feature/search.json$', 'places.views.search_json'), - ('^search_related$', 'places.views.search_related'), +# ('^search_related$', 'places.views.search_related'), ('^feature/(?P\d+)/similar.json$', 'places.views.search_related_json'), ('^auth_record.json$', 'places.views.auth_record_json'), ('^time_frame.json$', 'places.views.time_frame_json'),