Changes between Initial Version and Version 1 of Ticket #28316, comment 10


Ignore:
Timestamp:
Jul 12, 2017, 1:15:57 PM (7 years ago)
Author:
László Károlyi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28316, comment 10

    initial v1  
    33> ModelForm ForeignKey data is initialized on ModelForms at __init__ time, and then, only the PKs are put into the self.initial dict.
    44
    5 part. After that, the value that will be passed to `ModelChoiceField.prepare_value()`. My opinion is still that this part is too complicated and should be rewritten at a later stage.
     5part. Now, the value that will be passed to `ModelChoiceField.prepare_value()` is the one specified in `to_field_name`. My opinion is still that this part is too complicated and should be rewritten at a later stage.
Back to Top