Skip to content
Nest Django formsets for multi-level editing.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Drop Django < 1.11; prevent installation with Django 2.0. Jan 10, 2018
src/nested_formset
.gitignore Drop Django < 1.11; prevent installation with Django 2.0. Jan 10, 2018
.travis.yml
LICENSE Adding README file. Sep 3, 2013
MANIFEST.in
NEWS.txt
README.rst
setup.cfg Build universal wheels. May 20, 2014
setup.py
tox.ini Drop Django < 1.11; prevent installation with Django 2.0. Jan 10, 2018

README.rst

Django Nested Formsets

https://travis-ci.org/nyergler/nested-formset.png?branch=master

Formsets are a Django abstraction that make it easier to manage multiple instances of a single Form on a page. In 2009 I wrote a blog post about using nesting formsets using Django 1.1. This is a generic implementation of the technique described there, targeting Django 1.11. A follow-up blog post provides additional context.

Installing

You can install Django Nested Formsets using your favorite package management tool. For example:

$ pip install django-nested-formset

You can also install the latest development version:

$ pip install git+https://github.com/nyergler/nested-formset#egg=django-nested-formset

After installing the package, you can use the nestedformset_factory function to create your formset class.

Developing

If you'd like to work on the source, I suggest cloning the repository and creating a virtualenv.

$ cd nested-formset
$ virtualenv .
$ source bin/activate
$ python setup.py develop

The last line will install the installation and test dependencies.

To run the unit test suite, run the following:

$ python setup.py test

See Also

License

This package is released under a BSD style license. See LICENSE for details.

You can’t perform that action at this time.