Browse Source

PEP8 on Reference class

Roland Haroutiounian 9 years ago
parent
commit
2bb71f824f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lodel/leapi/datahandlers/reference.py

+ 2
- 1
lodel/leapi/datahandlers/reference.py View File

@@ -2,6 +2,7 @@
2 2
 from lodel.leapi.datahandlers.field_data_handler import FieldDataHandler
3 3
 from lodel.editorial_model.components import EmClass
4 4
 
5
+
5 6
 class Reference(FieldDataHandler):
6 7
 
7 8
     ## @brief Instanciation
@@ -29,7 +30,7 @@ class Reference(FieldDataHandler):
29 30
 
30 31
         if isinstance(value, dict):
31 32
             ref_values = value.values()
32
-            
33
+
33 34
         for related in value:
34 35
             if not isinstance(related, EmClass):
35 36
                 return (value, "The reference %s should be an instance of EmClass, %s gotten" % (related.display_name, related.__class__))

Loading…
Cancel
Save