Changes between Initial Version and Version 1 of Ticket #35746


Ignore:
Timestamp:
Sep 9, 2024, 6:56:24 AM (10 days ago)
Author:
Sarah Boyce
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35746 – Description

    initial v1  
    11Hello
    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.
    33
    44the 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.
     5in 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.
    66
    77Suggested patch :
    8 create the cleaned_data.attribute in the __init__ instead of the full_clean
     8create the cleaned_data.attribute in the `__init__` instead of the full_clean
Back to Top