Browse Source

Corrects an error

prieto 8 years ago
parent
commit
084b2dd5f0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lodel/leapi/datahandlers/base_classes.py

+ 1
- 1
lodel/leapi/datahandlers/base_classes.py View File

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

Loading…
Cancel
Save