diff --git a/docs/newforms.txt b/docs/newforms.txt index 2005adeec8..3a9f539dc8 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -860,6 +860,23 @@ classes::
  • Instrument:
  • Haircut type:
  • + +Prefixes for forms +------------------ + +You can put several Django forms inside one ``
    `` tag. To give each +``Form`` its own namespace you need to use the ``prefix`` keyword argument:: + + >>> mother = PersonForm(prefix="mother") + >>> father = PersonForm(prefix="father") + >>> print mother.as_ul() +
  • +
  • + >>> print father.as_ul() +
  • +
  • + + Fields ======