nested-formset travis-ci python

Nest Django formsets for multi-level editing.

3 years after

====================== Django Nested Formsets

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

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.8 and later. A follow-up blog post provides additional context.

I do not advocate the use of nested Formsets. In every case I've considered them, they've led to usability issues and overly complex view code. This repository was created as an exercise in test driven development and abstraction. Your mileage may vary.

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

  • Django Formset documentation_
  • jquery.django-formset_ Dynamic creation of formsets from the empty formset.

License

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

.. Formsets: https://docs.djangoproject.com/en/1.5/topics/forms/formsets/ .. Django Formset documentation: Formsets_ .. Form: https://docs.djangoproject.com/en/1.5/topics/forms/ .. blog post: http://yergler.net/blog/2009/09/27/nested-formsets-with-django/ .. follow-up blog post: http://yergler.net/blog/2013/09/03/nested-formsets-redux/ .. jquery.django-formset: https://github.com/mbertheau/jquery.django-formset

Related Repositories

django-superform

django-superform

Add forms and formsets to other forms like they were fields. ...

django-nested-forms

django-nested-forms

Nested forms for your django projects ...

jquery.django-formset

jquery.django-formset

Dynamic formsets for Django ...

django-formset-js

django-formset-js

Fork of the identically named pypi package but adding support for ordering forms ...

jquery.django-formset-example

jquery.django-formset-example

Examples for https://github.com/mbertheau/jquery.django-formset ...


Top Contributors

nyergler rfj001 aidanlister adongy mbertheau narenchoudhary jasisz

Releases

-   release-0.1.3 zip tar
-   release-0.1.2 zip tar