Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12700 - Take read-only fields into account when rendering the …

…empty form for dynamic inlines.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f70a0882a3d916cfd59c31d6a6f4316dce104466 1 parent be90ead
@jezdez jezdez authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/helpers.py
View
4 django/contrib/admin/helpers.py
@@ -196,9 +196,9 @@ def __iter__(self):
yield InlineAdminForm(self.formset, form, self.fieldsets,
self.opts.prepopulated_fields, None, self.readonly_fields,
model_admin=self.model_admin)
-
yield InlineAdminForm(self.formset, self.formset.empty_form,
- self.fieldsets, self.opts.prepopulated_fields, None)
+ self.fieldsets, self.opts.prepopulated_fields, None,
+ self.readonly_fields, model_admin=self.model_admin)
def fields(self):
fk = getattr(self.formset, "fk", None)
Please sign in to comment.
Something went wrong with that request. Please try again.