This commit is contained in:
Sanj 2011-08-29 18:45:21 +05:30
parent 60ac6d466f
commit 441c7bd629
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def search_related(request):
for s in similar_features: for s in similar_features:
d.append({ d.append({
'id': s.id, '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, 'preferred_name': s.preferred_name,
'similarity': s.similarity, 'similarity': s.similarity,
'distance': s.distance 'distance': s.distance

View File

@ -30,7 +30,7 @@
<a href="/admin/pleaces/feature/{{ s.id }}" title="View / Edit in Admin"> {{ s.preferred_name }} </a> <a href="/admin/pleaces/feature/{{ s.id }}" title="View / Edit in Admin"> {{ s.preferred_name }} </a>
</td> </td>
<td> <td>
{{ s.feature_type }} {{ s.feature_type.name }}
</td> </td>
<td> <td>
{{ s.similarity }} {{ s.similarity }}