Fixed #1931 -- update_object generic view no longer assumes the object's get_absolute_url() doesn't change. Thanks, marcink@elksoft.pl

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-05-22 02:02:23 +00:00
parent 2c5e9fcf73
commit d9aaa1ca86
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def update_object(request, model, object_id=None, slug=None,
errors = manipulator.get_validation_errors(new_data) errors = manipulator.get_validation_errors(new_data)
manipulator.do_html2python(new_data) manipulator.do_html2python(new_data)
if not errors: if not errors:
manipulator.save(new_data) object = manipulator.save(new_data)
if not request.user.is_anonymous(): if not request.user.is_anonymous():
request.user.message_set.create(message="The %s was updated successfully." % model._meta.verbose_name) request.user.message_set.create(message="The %s was updated successfully." % model._meta.verbose_name)