Skip to content

Instantly share code, notes, and snippets.

@garrypolley
Created February 20, 2013 02:49
Show Gist options
  • Save garrypolley/4992377 to your computer and use it in GitHub Desktop.
Save garrypolley/4992377 to your computer and use it in GitHub Desktop.
Create X number of extra formsets
def create_form_sets(number_to_make=None):
"""
Use this to make number_to_make form sets.
"""
number = number_to_make or 0
return formset_factory(MyForm,
extra=number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment