Fix crash when project has no allowed_methods property

This commit is contained in:
2016-10-27 09:29:49 +02:00
parent d2a24d4593
commit aac4922376

View File

@@ -57,7 +57,7 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
attributes.pop('_updated', None)
attributes.pop('_links', None)
attributes.pop('_deleted', None)
attributes.pop('allowed_methods')
attributes.pop('allowed_methods', None)
# Strip embedded image file properties and revert to ObjectId
for prop in ['picture_square', 'picture_header']:
if prop in attributes and type(attributes[prop]) is dict: