Fixing project delete precondition

remotes/origin/logger
Alejandro Alonso 2016-02-08 14:12:11 +01:00
parent 17923c6cfc
commit e8bd1f8e6b
1 changed files with 1 additions and 2 deletions

View File

@ -430,10 +430,9 @@ class ProjectViewSet(LikedResourceMixin, HistoryResourceMixin,
if obj is None:
raise Http404
obj.delete_related_content()
self.pre_delete(obj)
self.pre_conditions_on_delete(obj)
obj.delete_related_content()
obj.delete()
self.post_delete(obj)
return response.NoContent()