Prevent home project without URL.

This commit is contained in:
2016-06-28 15:01:02 +02:00
parent d652e6435d
commit 57cf9a3547
2 changed files with 6 additions and 1 deletions

View File

@@ -98,11 +98,13 @@ def protect_sensitive_fields(document, original):
return
document[name] = original[name]
revert('url')
revert('status')
revert('category')
revert('user')
if 'url' in original:
revert('url')
def after_inserting_projects(projects):
"""After inserting a project in the collection we do some processing such as: