Remove unnecessary else

This commit is contained in:
Ian Foote 2014-02-18 12:28:02 +00:00
parent f22aeeb0a3
commit dca8b98356

View File

@ -133,7 +133,7 @@ class UpdateModelMixin(object):
self.object = serializer.save(force_insert=True)
self.post_save(self.object, created=True)
return Response(serializer.data, status=status.HTTP_201_CREATED)
else:
self.object = serializer.save(force_update=True)
self.post_save(self.object, created=False)
return Response(serializer.data, status=status.HTTP_200_OK)