Browse Source

fix bug with not allowed_content part for properties

Guénaël Muller 6 years ago
parent
commit
1cc5186e63
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backend/tracim_backend/models/data.py

+ 2 - 2
backend/tracim_backend/models/data.py View File

@@ -1181,8 +1181,8 @@ class Content(DeclarativeBase):
1181 1181
         else:
1182 1182
             properties = json.loads(self._properties)
1183 1183
         if CONTENT_TYPES.get_one_by_slug(self.type) != CONTENT_TYPES.Event:
1184
-            if self._properties and not 'allowed_content' in self._properties:
1185
-                properties['allowed_content'] = CONTENT_TYPES.default_allowed_content_properties(self.type)
1184
+            if not 'allowed_content' in properties:
1185
+                properties['allowed_content'] = CONTENT_TYPES.default_allowed_content_properties(self.type)  # nopep8
1186 1186
         return properties
1187 1187
 
1188 1188
     @properties.setter