Skip to content

Instantly share code, notes, and snippets.

@amelieykw
Created July 13, 2018 07:49
Show Gist options
  • Save amelieykw/d03058c8e5b1d0734de3c3976a11531a to your computer and use it in GitHub Desktop.
Save amelieykw/d03058c8e5b1d0734de3c3976a11531a to your computer and use it in GitHub Desktop.
[Django - Formset] #Formset #Django
  • Formsets
    • Using initial data with a formset
    • Limiting the maximum number of forms
    • Formset validation
    • Validating the number of forms in a formset
    • Dealing with ordering and deletion of forms
    • Adding additional fields to a formset
    • Passing custom parameters to formset forms
    • Customizing a formset’s prefix
    • Using a formset in views and templates
  • Creating forms from models
    • ModelForm
    • Model formsets
    • Inline formsets
  • Form Assets (the Media class)
    • Assets as a static definition
    • Media as a dynamic property
    • Paths in asset definitions
    • Media objects
    • Media on Forms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment