Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No commit message

  • Loading branch information...
commit dcca5b144ae58dc2c927489a023cd9ae45445bcc 1 parent e4ea0fb
@dszczyt authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  README.rst
View
3  README.rst
@@ -20,6 +20,7 @@ In your forms.py
----------------
::
+
from nested_forms import ComplexModelForm
Make you main form inherit from ComplexModelForm
@@ -27,6 +28,7 @@ Make you main form inherit from ComplexModelForm
In Meta subclass of your ComplexModelForm, add :
::
+
formsets = {
}
@@ -35,6 +37,7 @@ This dict has for keys the related objects' names.
For the examples form Django's tutorial, we could write :
::
+
def get_choice_form(poll):
class ChoiceForm(forms.ModelForm):
class Meta:
Please sign in to comment.
Something went wrong with that request. Please try again.