dont fail if findvalue is not set
This commit is contained in:
parent
eb0c1d13ba
commit
3f2ba727bd
1 changed files with 11 additions and 10 deletions
|
@ -63,6 +63,7 @@ def get_matches(obj, model, layer_type, qs=None):
|
||||||
if not qs:
|
if not qs:
|
||||||
qs = Annotation.objects.all()
|
qs = Annotation.objects.all()
|
||||||
for a in qs.filter(f):
|
for a in qs.filter(f):
|
||||||
|
if a.findvalue:
|
||||||
value = a.findvalue.lower()
|
value = a.findvalue.lower()
|
||||||
for name in super_matches:
|
for name in super_matches:
|
||||||
name = ox.decode_html(name)
|
name = ox.decode_html(name)
|
||||||
|
|
Loading…
Reference in a new issue