Changes between Initial Version and Version 1 of Ticket #35746
- Timestamp:
- Sep 9, 2024, 6:56:24 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35746 – Description
initial v1 1 1 Hello 2 form.clean_field_name functions have no parameter passed to it as indicated in the documentation and need to access the form.cleaned_data dictionnary. However this cleaned_data dictionnary is not created in the __init__of the form but only in the full_clean method of the form.2 `form.clean_field_name` functions have no parameter passed to it as indicated in the documentation and need to access the `form.cleaned_data` dictionary. However this cleaned_data dictionary is not created in the `__init__` of the form but only in the full_clean method of the form. 3 3 4 4 the need: 5 in the form.__init__, add closure functions as clean_field_name functions and use the cleaned_data dictionnary as a free variable of this closure function. However this is not possible because the cleaned_data_dictionnary is not yet created.5 in the `form.__init__`, add closure functions as clean_field_name functions and use the cleaned_data dictionary as a free variable of this closure function. However this is not possible because the cleaned_data_dictionary is not yet created. 6 6 7 7 Suggested patch : 8 create the cleaned_data.attribute in the __init__instead of the full_clean8 create the cleaned_data.attribute in the `__init__` instead of the full_clean