Changes between Version 2 and Version 3 of Ticket #15602, comment 12
- Timestamp:
- Jan 22, 2015, 8:49:31 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15602, comment 12
v2 v3 1 I've done some additional research, and the problem actually goes much deeper than this. Not only do the results of `get_readonly_fields` get passed to the `InlineAdminFormSet` object and others in `django.contrib.admin.helpers` that actually render the formset (including itsreadonly fields), they also get passed into the formset validation logic.1 I've done some additional research, and the problem actually goes much deeper than this. Not only do the results of `get_readonly_fields` get passed to the `InlineAdminFormSet` object and others in `django.contrib.admin.helpers` that actually render the formset (including the readonly fields), they also get passed into the formset validation logic. 2 2 3 3 The way formsets work is to take a single form class and instantiate it multiple times; an inline model formset uses a constructed `ModelForm` subclass. (see `django.forms.models.modelformset_factory`)