File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,13 +160,13 @@ def sync_from_magic(project_db):
160
160
create_file (project_url , os .path .join (root , 'admin_%s_update.html' % name ))
161
161
create_file (project_url , os .path .join (root , 'admin_%s_list.html' % name ))
162
162
163
- if not model_db ['admin_only' ]:
164
- create_file (project_url , os .path .join (root , '%s_update.html' % name ))
165
-
166
- if model_db ['public_view' ] or not model_db ['admin_only' ]:
163
+ if model_db ['has_view' ]:
167
164
create_file (project_url , os .path .join (root , '%s_view.html' % name ))
168
165
create_file (project_url , os .path .join (root , '%s_list.html' % name ))
169
166
167
+ if model_db ['has_update' ]:
168
+ create_file (project_url , os .path .join (root , '%s_update.html' % name ))
169
+
170
170
171
171
###############################################################################
172
172
# Main
You can’t perform that action at this time.
0 commit comments