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: brosner
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:


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 brosner

  • milestone set to 1.0
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from nobody to brosner
  • Patch needs improvement unset
  • Status changed from new to assigned
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 8 years ago by brosner

  • Resolution set to fixed
  • Status changed from assigned to closed

(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 deleted

Milestone 1.0 deleted

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