aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2014-02-18 12:30:55 +0000
committerTom Christie2014-02-18 12:30:55 +0000
commitd328f1827dcb53a92b11f3f146bad4db3ca83d89 (patch)
tree06749183f30d78b907bb92a5ee5964a2b8782fd2 /rest_framework/mixins.py
parent68573a3c1a35a2c278a5e94e581b23510b6a8cde (diff)
downloaddjango-rest-framework-d328f1827dcb53a92b11f3f146bad4db3ca83d89.tar.bz2
Tweak comment wrapping.
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index 7722d5be..e1a24dc7 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -125,8 +125,8 @@ class UpdateModelMixin(object):
try:
self.pre_save(serializer.object)
except ValidationError as err:
- # full_clean on model instance may be called in pre_save, so we
- # have to handle eventual errors.
+ # full_clean on model instance may be called in pre_save,
+ # so we have to handle eventual errors.
return Response(err.message_dict, status=status.HTTP_400_BAD_REQUEST)
if self.object is None: