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


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

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 form 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 mark the individual field objects as readonly and render them differently, 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