Changes between Initial Version and Version 1 of Ticket #28316, comment 10
- Timestamp:
- Jul 12, 2017, 1:15:57 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28316, comment 10
initial v1 3 3 > ModelForm ForeignKey data is initialized on ModelForms at __init__ time, and then, only the PKs are put into the self.initial dict. 4 4 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.5 part. 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.