Skip to content

Instantly share code, notes, and snippets.

@joeydi
Created June 10, 2016 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joeydi/8e98cd22fc3c02da20d841661af28418 to your computer and use it in GitHub Desktop.
Save joeydi/8e98cd22fc3c02da20d841661af28418 to your computer and use it in GitHub Desktop.
Form/FormSet cleaned_data handling
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