Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Formsets inside forms

Project Description

Django’s form wizard allows you to have only one form or one formset (since 1.4) per step. Using django-formfield you can have more forms per step. Using this app you can have more formsets per step.

Or maybe you will find other use cases for it :)

Installation

  1. Install django-formsetfield with pip:

    $ pip install django-formsetfield
    
  2. Add formsetfield to INSTALLED_APPS.

Usage example

from django import forms
from formsetfield.fields import FormSetField


class AdultForm(forms.Form):

    fullname = forms.CharField()
    passport = forms.CharField()


class ChildForm(forms.Form):

    fullname = forms.CharField()
    birth_certificate = forms.CharField()


class PassengersForm(forms.Form):

    adults = FormSetField(formset_factory(AdultForm))
    children = FormSetField(formset_factory(ChildForm))

Contributing

Feel free to fork, send pull requests or report bugs and issues on github.

Release History

Release History

This version
History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-formsetfield-0.1.1.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Feb 6, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting