1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-31 11:39:02 +01:00

Corrects an error

This commit is contained in:
prieto 2017-01-20 15:19:35 +01:00
commit 084b2dd5f0

View file

@ -327,7 +327,7 @@ class Reference(DataHandler):
return True
# !! Reimplement instance fetching in construct data !!
target_class = self.back_reference[0]
if target_class not in self.__allowed_class:
if target_class not in self.__allowed_classes:
logger.warning('Class of the back_reference given is not an allowed class')
return False
target_uidfield = target_class.uid_fieldname()[0] #multi uid broken here