Fixed #8882 -- When a foreign key is among the unique_together fields in an...
Fixed #8882 -- When a foreign key is among the unique_together fields in an inline formset properly handle it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
{% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}
{% if inline_admin_form.show_url %}<ahref="../../../r/{{ inline_admin_form.original.content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>{% endif %}
...'book_set-TOTAL_FORMS':'3',# the number of forms rendered
@@ -409,9 +427,9 @@ book.
>>>formset=AuthorBooksFormSet(instance=author)
>>>forforminformset.forms:
...printform.as_p()
<p><labelfor="id_book_set-0-title">Title:</label><inputid="id_book_set-0-title"type="text"name="book_set-0-title"value="Les Fleurs du Mal"maxlength="100"/><inputtype="hidden"name="book_set-0-id"value="1"id="id_book_set-0-id"/></p>
<p><labelfor="id_book_set-0-title">Title:</label><inputid="id_book_set-0-title"type="text"name="book_set-0-title"value="Les Fleurs du Mal"maxlength="100"/><inputtype="hidden"name="book_set-0-author"value="1"id="id_book_set-0-author"/><inputtype="hidden"name="book_set-0-id"value="1"id="id_book_set-0-id"/></p>