From 441c7bd629b496375fdc403ddbcd347e021e3b72 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 29 Aug 2011 18:45:21 +0530 Subject: [PATCH] syntax --- gazetteer/places/views.py | 2 +- gazetteer/templates/search_related.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gazetteer/places/views.py b/gazetteer/places/views.py index a3e1d8f..50bb061 100644 --- a/gazetteer/places/views.py +++ b/gazetteer/places/views.py @@ -34,7 +34,7 @@ def search_related(request): for s in similar_features: d.append({ 'id': s.id, - 'feature_type': FeatureType.objects.get(pk=s.feature_type_id) + 'feature_type': FeatureType.objects.get(pk=s.feature_type_id), 'preferred_name': s.preferred_name, 'similarity': s.similarity, 'distance': s.distance diff --git a/gazetteer/templates/search_related.html b/gazetteer/templates/search_related.html index 901cbdf..11e73f1 100644 --- a/gazetteer/templates/search_related.html +++ b/gazetteer/templates/search_related.html @@ -30,7 +30,7 @@ {{ s.preferred_name }} - {{ s.feature_type }} + {{ s.feature_type.name }} {{ s.similarity }}