#8357 closed (fixed)
Changeset 8385 broke UserAdmin's add_view
Reported by: | evan_schulz | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
[8385] converted some template logic into python code directly not taking into account that the logic is assuming that certain context variables exist. This obviously wasn't a problem in the template, but is causing a number of KeyErrors in the new templatetag if the context vars it is looking for (adminform, inline_admin_formsets) don't exist. In particular it is throwing these errors when you try to add a new contrib.auth user since UserAdmin overrides the add_view method and doesn't set those context vars.
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
by , 16 years ago
comment:3 by , 15 years ago
Resolution: | duplicate → fixed |
---|
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
correction to original diff