You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using code resembling the following (I omitted a lot of additional fields, labels, help texts, etc to make the example more concise and in turn hopefully more readable). The field emailis defined in the PersonModel whilst email_repeated is a "virtual" field declared and processed within the Person form.
Another Note: I am in the progress of porting our forms to the form wizard, thus, some code might not be necessary any more, i.e. the back button handling inside __init__.
When using the form in its own view clean_email_repeated prints email as well as email_repeated, when using SessionWizardView only email is printed, email_repeated is None.
Likewise, clean_email_repeated prints both fields correctly when the form in its own view, but prints None when printing email and clean_email_repeated .
clean on the other hand prints both fields correctly. Any hints to what exactly is going on here? Am I to blame? Is this a bug and more importantly, is there a fix that allows me to keep the logic of cleaning the fields separate, without having to couple the forms to SessionWizardView?
// edit: using cleaned_data to access the data also returns None
The text was updated successfully, but these errors were encountered:
I am using code resembling the following (I omitted a lot of additional fields, labels, help texts, etc to make the example more concise and in turn hopefully more readable). The field
email
is defined in thePersonModel
whilstemail_repeated
is a "virtual" field declared and processed within thePerson
form.Another Note: I am in the progress of porting our forms to the form wizard, thus, some code might not be necessary any more, i.e. the back button handling inside
__init__
.When using the form in its own view
clean_email_repeated
printsemail
as well asemail_repeated
, when usingSessionWizardView
onlyemail
is printed,email_repeated
isNone
.Likewise,
clean_email_repeated
prints both fields correctly when the form in its own view, but printsNone
when printingemail
andclean_email_repeated
.clean
on the other hand prints both fields correctly. Any hints to what exactly is going on here? Am I to blame? Is this a bug and more importantly, is there a fix that allows me to keep the logic of cleaning the fields separate, without having to couple the forms toSessionWizardView
?// edit: using cleaned_data to access the data also returns
None
The text was updated successfully, but these errors were encountered: