Ticket #8433: 8433.authpopup.diff

File 8433.authpopup.diff, 760 bytes (added by Julien Phalip, 16 years ago)

sorl's patch in a diff

  • django/django/contrib/auth/admin.py

     
    5252                if "_addanother" in request.POST:
    5353                    request.user.message_set.create(message=msg)
    5454                    return HttpResponseRedirect(request.path)
     55                elif '_popup' in request.REQUEST:
     56                    return self.response_add(request, new_user)
    5557                else:
    5658                    request.user.message_set.create(message=msg + ' ' + ugettext("You may edit it again below."))
    5759                    return HttpResponseRedirect('../%s/' % new_user.id)
Back to Top