diff --git a/django/views/generic/create_update.py b/django/views/generic/create_update.py index 0605744e3d..f73aae26dd 100644 --- a/django/views/generic/create_update.py +++ b/django/views/generic/create_update.py @@ -107,7 +107,7 @@ def update_object(request, model, object_id=None, slug=None, errors = manipulator.get_validation_errors(new_data) manipulator.do_html2python(new_data) if not errors: - manipulator.save(new_data) + object = manipulator.save(new_data) if not request.user.is_anonymous(): request.user.message_set.create(message="The %s was updated successfully." % model._meta.verbose_name)