Skip to content
Snippets Groups Projects
Commit 1728cf80 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: backrefs attribute may contain Entities

parent 63bf3d20
Branches
Tags
2 merge requests!91Release 0.3,!8backref
......@@ -101,7 +101,10 @@ class IdentifiableAdapter(metaclass=ABCMeta):
if ident.record_type is not None:
query_string += ident.record_type
for ref in ident.backrefs:
query_string += (" WHICH IS REFERENCED BY " + str(ref) + " AND")
eid = ref
if isinstance(ref, db.Entity):
eid = ref.id
query_string += (" WHICH IS REFERENCED BY " + str(eid) + " AND")
query_string += " WITH "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment