AC-1040 Cleanup old code in tasks, combine methods from unified job subclasses into base classes.

This commit is contained in:
Chris Church
2014-03-28 22:07:24 -04:00
parent 352197c5d2
commit 35e4bd477c
8 changed files with 172 additions and 268 deletions

View File

@@ -491,7 +491,7 @@ class ProjectUpdateView(GenericAPIView):
def post(self, request, *args, **kwargs):
obj = self.get_object()
if obj.can_update:
project_update = obj.update(**request.DATA)
project_update = obj.update()
if not project_update:
return Response({}, status=status.HTTP_400_BAD_REQUEST)
else: