Fix taxon
This commit is contained in:
parent
2dda215ffe
commit
da8fba3497
1 changed files with 4 additions and 1 deletions
|
@ -183,7 +183,10 @@ def get_paginated(query_set, page, per_page):
|
|||
for r in p.fieldspeople_set.all():
|
||||
filters['field'].append(r.field.name)
|
||||
for r in p.taxapeople_set.all():
|
||||
filters['taxon'].append(r.taxon.name)
|
||||
if r.taxon and r.taxon.name:
|
||||
filters['taxon'].append(r.taxon.name)
|
||||
else:
|
||||
print("r.taxon.name is None %s %s" % (r.range_id, r.taxon))
|
||||
filters = {
|
||||
'country': sorted(set(filters['country'])),
|
||||
'range': sorted(set(filters['range'])),
|
||||
|
|
Loading…
Reference in a new issue