#13696: Admin Edit Inline templates only output hidden field for PK when
inline_admin_form.has_auto_field
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
evan.reiser@… | Status: reopened
Type: Bug | Component: contrib.admin
Milestone: | Severity: Normal
Version: 1.2 | Keywords: inline templates
Resolution: | Has patch: 0
Triage Stage: Accepted | Needs tests: 0
Needs documentation: 0 | Easy pickings: 1
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Changes (by evan.reiser@…):
* easy: => 1
Comment:
This is a very easy fix, all you need to do is change this line:
{{{
{% if inline_admin_form.has_auto_field %}{{
inline_admin_form.pk_field.field }}{% endif %}
}}}
to this:
{{{
{% if inline_admin_form.pk_field %}{{ inline_admin_form.pk_field.field
}}{% endif %}
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/13696#comment:9>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.