Commit d328f182 by Tom Christie

Tweak comment wrapping.

parent 68573a3c
...@@ -125,8 +125,8 @@ class UpdateModelMixin(object): ...@@ -125,8 +125,8 @@ class UpdateModelMixin(object):
try: try:
self.pre_save(serializer.object) self.pre_save(serializer.object)
except ValidationError as err: except ValidationError as err:
# full_clean on model instance may be called in pre_save, so we # full_clean on model instance may be called in pre_save,
# have to handle eventual errors. # so we have to handle eventual errors.
return Response(err.message_dict, status=status.HTTP_400_BAD_REQUEST) return Response(err.message_dict, status=status.HTTP_400_BAD_REQUEST)
if self.object is None: if self.object is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment