Browse Source

slug pattern

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

+ 4 - 4
tracim/models/data.py View File

130
     CONTENT_MANAGER = 4
130
     CONTENT_MANAGER = 4
131
     WORKSPACE_MANAGER = 8
131
     WORKSPACE_MANAGER = 8
132
 
132
 
133
-    # TODO - G.M - 10-04-2018 - [Cleanup] Drop this
134
     SLUG = {
133
     SLUG = {
135
-        NOT_APPLICABLE: 'not_applicable',
134
+        NOT_APPLICABLE: 'not-applicable',
136
         READER: 'reader',
135
         READER: 'reader',
137
         CONTRIBUTOR: 'contributor',
136
         CONTRIBUTOR: 'contributor',
138
-        CONTENT_MANAGER: 'content_manager',
139
-        WORKSPACE_MANAGER: 'workspace_manager',
137
+        CONTENT_MANAGER: 'content-manager',
138
+        WORKSPACE_MANAGER: 'workspace-manager',
140
     }
139
     }
141
 
140
 
142
     LABEL = dict()
141
     LABEL = dict()
145
     LABEL[2] = l_('Contributor')
144
     LABEL[2] = l_('Contributor')
146
     LABEL[4] = l_('Content Manager')
145
     LABEL[4] = l_('Content Manager')
147
     LABEL[8] = l_('Workspace Manager')
146
     LABEL[8] = l_('Workspace Manager')
147
+    # TODO - G.M - 10-04-2018 - [Cleanup] Drop this
148
     #
148
     #
149
     # STYLE = dict()
149
     # STYLE = dict()
150
     # STYLE[0] = ''
150
     # STYLE[0] = ''