Ticket #10759: admin_user_templates.diff
File admin_user_templates.diff, 1.4 KB (added by , 16 years ago) |
---|
-
django/contrib/auth/admin.py
76 76 return HttpResponseRedirect('../%s/' % new_user.id) 77 77 else: 78 78 form = self.add_form() 79 return render_to_response('admin/auth/user/add_form.html', { 79 80 template_choices = [ 81 'admin/%s/%s/add_form.html' % (self.opts.app_label, self.opts.object_name.lower()), 82 'admin/auth/user/add_form.html', 83 ] 84 85 return render_to_response(template_choices, { 80 86 'title': _('Add user'), 81 87 'form': form, 82 88 'is_popup': '_popup' in request.REQUEST, … … 108 114 return HttpResponseRedirect('..') 109 115 else: 110 116 form = self.change_password_form(user) 111 return render_to_response('admin/auth/user/change_password.html', { 117 118 template_choices = [ 119 'admin/%s/%s/change_password.html' % (self.opts.app_label, self.opts.object_name.lower()), 120 'admin/auth/user/change_password.html', 121 ] 122 123 return render_to_response(template_choices, { 112 124 'title': _('Change password: %s') % escape(user.username), 113 125 'form': form, 114 126 'is_popup': '_popup' in request.REQUEST,