I started this thread and managed to figure out the issue yesterday. However, another related issue has occurred. When I have a 2nd select list in the model, and I select '8888' or
Solution 1:
I never discovered the answer to this issue.
However, a workaround is that on form submit when 8888 or 9999 is selected and there are no errors, I manually set the value to 1 using jquery:
$('#id_of_element_type').val('1');
I hope that this will assist someone.
Share
Post a Comment
for "Using Django Cleaned_data To Reset Data Before Commit To Db"
Post a Comment for "Using Django Cleaned_data To Reset Data Before Commit To Db"