Ticket #1557: create_update.diff
File create_update.diff, 1.1 KB (added by , 19 years ago) |
---|
-
django/views/generic/create_update.py
40 40 new_object = manipulator.save(new_data) 41 41 42 42 if not request.user.is_anonymous(): 43 request.user.add_message("The %s was created suc essfully." % mod.Klass._meta.verbose_name)43 request.user.add_message("The %s was created successfully." % mod.Klass._meta.verbose_name) 44 44 45 45 # Redirect to the new object: first by trying post_save_redirect, 46 46 # then by obj.get_absolute_url; fail if neither works. … … 114 114 manipulator.save(new_data) 115 115 116 116 if not request.user.is_anonymous(): 117 request.user.add_message("The %s was updated suc essfully." % mod.Klass._meta.verbose_name)117 request.user.add_message("The %s was updated successfully." % mod.Klass._meta.verbose_name) 118 118 119 119 # Do a post-after-redirect so that reload works, etc. 120 120 if post_save_redirect: