Explorar el Código

Corrects an error

prieto hace 7 años
padre
commit
084b2dd5f0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      lodel/leapi/datahandlers/base_classes.py

+ 1
- 1
lodel/leapi/datahandlers/base_classes.py Ver fichero

@@ -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…
Cancelar
Guardar