Bastien Sevajol 6 years ago
parent
commit
402fc57b4e
No account linked to committer's email
1 changed files with 7 additions and 6 deletions
  1. 7 6
      tracim/models/data.py

+ 7 - 6
tracim/models/data.py View File

@@ -131,12 +131,13 @@ class UserRoleInWorkspace(DeclarativeBase):
131 131
     WORKSPACE_MANAGER = 8
132 132
 
133 133
     # TODO - G.M - 10-04-2018 - [Cleanup] Drop this
134
-    SLUG = dict()
135
-    SLUG[NOT_APPLICABLE] = 'not_applicable'
136
-    SLUG[READER] = 'reader'
137
-    SLUG[CONTRIBUTOR] = 'contributor'
138
-    SLUG[CONTENT_MANAGER] = 'content_manager'
139
-    SLUG[WORKSPACE_MANAGER] = 'workspace_manager'
134
+    SLUG = {
135
+        NOT_APPLICABLE: 'not_applicable',
136
+        READER: 'reader',
137
+        CONTRIBUTOR: 'contributor',
138
+        CONTENT_MANAGER: 'content_manager',
139
+        WORKSPACE_MANAGER: 'workspace_manager',
140
+    }
140 141
 
141 142
     # LABEL = dict()
142 143
     # LABEL[0] = l_('N/A')