Changes between Version 1 and Version 2 of Ticket #15602, comment 12


Ignore:
Timestamp:
Jan 22, 2015, 8:49:09 PM (10 years ago)
Author:
David Isaacson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15602, comment 12

    v1 v2  
    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.
     1I'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 its readonly fields), they also get passed into the formset validation logic.
    22
    33The 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`) 
Back to Top