Created
June 10, 2016 01:40
-
-
Save joeydi/8e98cd22fc3c02da20d841661af28418 to your computer and use it in GitHub Desktop.
Form/FormSet cleaned_data handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isinstance(cleaned_data, list): | |
cleaned_data = [self.process_cleaned_data(form_data) for form_data in cleaned_data] | |
else: | |
cleaned_data = self.process_cleaned_data(cleaned_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment