Ticket #1557: create_update.diff

File create_update.diff, 1.1 KB (added by mattimustang@…, 19 years ago)

type fixes

  • django/views/generic/create_update.py

     
    4040            new_object = manipulator.save(new_data)
    4141
    4242            if not request.user.is_anonymous():
    43                 request.user.add_message("The %s was created sucessfully." % mod.Klass._meta.verbose_name)
     43                request.user.add_message("The %s was created successfully." % mod.Klass._meta.verbose_name)
    4444
    4545            # Redirect to the new object: first by trying post_save_redirect,
    4646            # then by obj.get_absolute_url; fail if neither works.
     
    114114            manipulator.save(new_data)
    115115
    116116            if not request.user.is_anonymous():
    117                 request.user.add_message("The %s was updated sucessfully." % mod.Klass._meta.verbose_name)
     117                request.user.add_message("The %s was updated successfully." % mod.Klass._meta.verbose_name)
    118118
    119119            # Do a post-after-redirect so that reload works, etc.
    120120            if post_save_redirect:
Back to Top