Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#8353 closed (fixed)

TemplateSyntaxError when adding user in admin

Reported by: marzim Owned by: Brian Rosner
Component: contrib.admin Version: master
Severity: Keywords:
Cc: martin@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When trying to add a user in admin you get a TemplateSyntaxError (url: <server>/admin/auth/user/add/). It's in the file: django/contrib/admin/templates/admin/change_form.html on line 61

  	{% prepopulated_fields_js %}

When outcommented, the error disappear.

Change History (3)

comment:1 Changed 8 years ago by Brian Rosner

milestone: 1.0
Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to Brian Rosner
Patch needs improvement: unset
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Brian Rosner

Resolution: fixed
Status: assignedclosed

(In [8421]) Fixed #8353 -- Corrected the case when adminform is not in the context when rendering {% prepopulated_fields_js %} in the admin. Thanks evan_schulz for the initial patch.

comment:3 Changed 5 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top