syntax
This commit is contained in:
parent
60ac6d466f
commit
441c7bd629
|
@ -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
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user