Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored February 01, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/admin/helpers.py
4  django/contrib/admin/helpers.py
@@ -196,9 +196,9 @@ def __iter__(self):
196 196
             yield InlineAdminForm(self.formset, form, self.fieldsets,
197 197
                 self.opts.prepopulated_fields, None, self.readonly_fields,
198 198
                 model_admin=self.model_admin)
199  
-
200 199
         yield InlineAdminForm(self.formset, self.formset.empty_form,
201  
-            self.fieldsets, self.opts.prepopulated_fields, None)
  200
+            self.fieldsets, self.opts.prepopulated_fields, None,
  201
+            self.readonly_fields, model_admin=self.model_admin)
202 202
 
203 203
     def fields(self):
204 204
         fk = getattr(self.formset, "fk", None)

0 notes on commit f70a088

Please sign in to comment.
Something went wrong with that request. Please try again.