Skip to content

Commit 20801d4

Browse files
committed
SwanContents: fix project creation
1 parent 6b3bdfa commit 20801d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwanContents/swancontents/filemanager/swanfilemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def save(self, model, path=''):
211211
self.run_pre_save_hook(model=model, path=path)
212212

213213
try:
214-
if 'is_project' in model and model['is_project']:
214+
if model['type'] == 'project':
215215
if not self._is_swan_root_folder(os_path):
216216
raise web.HTTPError(400, "You can only create projects inside Swan Projects")
217217
self._save_project(os_path, model, path)

0 commit comments

Comments
 (0)