Changes between Initial Version and Version 1 of Ticket #15602, comment 12
- Timestamp:
- Jan 22, 2015, 8:47:01 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15602, comment 12
initial v1 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 mark the individual field objects as readonly and render them differently, they also get passed into the regular formvalidation 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 mark the individual field objects as readonly and render them differently, 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`)