Ticket #16327: django-16327.diff

File django-16327.diff, 727 bytes (added by candlerb, 13 years ago)
  • django/contrib/admin/options.py

    old new  
    717717        msg = _('The %(name)s "%(obj)s" was added successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)}
    718718        # Here, we distinguish between different save types by checking for
    719719        # the presence of keys in request.POST.
    720         if "_continue" in request.POST:
     720        if "_continue" in request.POST or "_saveasnew" in request.POST:
    721721            self.message_user(request, msg + ' ' + _("You may edit it again below."))
    722722            if "_popup" in request.POST:
    723723                post_url_continue += "?_popup=1"
Back to Top