Code

Opened 5 years ago

Closed 5 years ago

#11176 closed (duplicate)

add user brocken, if TEMPLATE_STRING_IF_INVALID != ""

Reported by: jedie Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In the django admin panel is the "add user" view broken, if settings.TEMPLATE_STRING_IF_INVALID is not empty.

The view used template admin/auth/user/add_form.html this file used {% extends "admin/change_form.html" %} In this file the form would be insert with:

<form ... action="{{ form_url }}" method="post"...

The view django.contrib.auth.admin.UserAdmin.add_view() doesn't insert "form_url" into the template context.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by jedie

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Sorry, dup of #9051, #5532, #4279, and #3579

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.