Skip to content

jasisz/nested-formset

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Nested Formsets

image

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.5 and later. 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 django-nested-formset==dev

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 from within the virtualenv:

$ python ./bin/django-admin.py test --settings=nested_formset.test_settings nested_formset

See Also

License

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

About

Nest Django formsets for multi-level editing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%