Skip to main content

Extended forms library for django

Project description

.. _topics-overview:

Softwarefabrica Django Forms

.. admonition:: About this document

This document provides an overview of what Softwarefabrica Django Forms is.

.. contents::
:depth: 3

See also the `documentation index`_.

.. _`documentation index`: index.html

What is this?

This is a forms library for `Django`_ projects, which aims at providing increased
functionality and flexibility to the standard `forms library`_ (aka `newforms`).

Your help and feedback is precious. Suggestions and contributions are very much
appreciated. See below on how you can contribute.

If you want to actively collaborate and provide code, documentation, tests or
bug fixes, please feel free to create a new Bazaar branch in Launchpad, and tell
us about it! See the collaboration_ section for more information.

And don't forget to check also our other `Django`_ applications,
`softwarefabrica.django.utils`_, `softwarefabrica.django.crud`_, and

.. _`Django`:
.. _`softwarefabrica.django.utils`:
.. _`softwarefabrica.django.forms`:
.. _`softwarefabrica.django.crud`:
.. _``:
.. _`sflib`:

Feature overview

- a compatible replacement for the standard ``Form`` class, supporting **templated** form output
- a compatible replacement for the standard ``ModelForm`` class, supporting extended features, like **field ordering**, **advanced widgets**, **templated output**
- a compatible replacement for ``modelform_factory``, which uses the extended ``ModelForm``
- a set of extended fields and widgets:
- compatible replacements for ``DateField`` and ``DateTimeField`` and the associated widgets, using a nice **popup Javascript calendar**
- a new ``DateRangeField``
- compatible replacements for ``ModelChoiceField`` and ``ModelMultipleChoiceField`` using a **popup interface** for selecting the related instance/instances

.. _`Django`:
.. _`forms library`:

Pre-requisites and installation

See the `installation guide document`_.

.. _`installation guide document`: install.html

.. _collaboration:

How can I contribute?

As said, your help is precious. We'll warmly appreciate any help you'll want to
give. Just using this library is a reward for us, but if you want to become more
actively involved, you are welcome!

The project has a `development home page`_ at `LaunchPad`_:

There you can file `bugs`_, suggest `enhancements`_, follow development or ask
to become an active `team`_ member.

You can checkout the development branch using `Bazaar`_:


bzr branch lp:sf-django-forms

We'll appreciate very much if you'll want to contribute back any changes. Just
register your branch with `LaunchPad`_ and tell us!

Source code can also be browsed `online`_.

.. _`development home page`:
.. _`LaunchPad`:
.. _`Bazaar`:
.. _`online`:
.. _`Softwarefabrica`:
.. _`team`:
.. _`bugs`:
.. _`enhancements`:


It's possible to contact the author by e-mail at the following addresses:

m.pantaleoni at

panta at

marco.pantaleoni at


This software is covered by the GNU General Public License version 2.
If you want to use this software in a closed source application, you
need to buy a commercial license from the author.

This open source version is:

Copyright (C) 2007-2008 Marco Pantaleoni. All rights reserved.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


2010-02-24 Marco Pantaleoni <>

* added SelectCascadeField and SelectCascadePopupField fields
(and the corresponding widgets), which implement cascaded-update
for "slave" select fields.

* refactored widgets to use a common WidgetHelper class for
template-based rendering.

2009-11-10 Marco Pantaleoni <>

* added html IDs to form rows (with support in the form classes)

2009-10-26 Marco Pantaleoni <>

* added 'null' and 'include_blank' kwargs to

2009-10-21 Marco Pantaleoni <>

* integrated sflib.finddata.find_package_data() in

2009-05-15 Marco Pantaleoni <>

* softwarefabrica/django/forms/ added ``BaseForm`` and made
``Form`` its descendant (instead of from forms.Form).
Added FormBuilder.

2009-03-30 Marco Pantaleoni <>

* softwarefabrica/django/forms/templates/forms/field.html: fixed error
display in fields template for templated forms.

2009-03-29 Marco Pantaleoni <>

* softwarefabrica/django/forms/ global_errors is computed only
for bound forms (to avoid a spurious call to is_valid()).

2009-03-20 Marco Pantaleoni <>

* softwarefabrica/django/forms/ handled and passed to template
also non-field errors.

2009-03-17 Marco Pantaleoni <>

* softwarefabrica/django/forms/ implemented
workaround for Django bug #9473 involing NullBooleanFields in FormWizard
or FormPreview.

2009-03-15 Marco Pantaleoni <>

* softwarefabrica/django/forms/ handled case where Meta.fields
is present but None.

2009-03-11 Marco Pantaleoni <>

* softwarefabrica/django/forms/templates/forms/form.html
softwarefabrica/django/forms/templates/forms/hiddenfield.html: added
hidden fields handling.

* softwarefabrica/django/forms/ if Meta.fields is specified
in ModelForm, it's also used for the field ordering (by default).

2008-12-19 Marco Pantaleoni <>

* docs/install.txt: improved installation instructions.

* docs/: fixed some typos.

2008-12-18 Marco Pantaleoni <>

* fixes to, .bzrignore and README.txt

* added extensive documentation.

2008-12-16 Marco Pantaleoni <>

* softwarefabrica/django/forms/ fixed small
bugs in DateField, DateTimeField, DateWidget, DateTimeWidget.

* softwarefabrica/django/forms/
(extended_formfield_cb): 'required' is forced into fields kwargs,
because in some cases it's not honoured.

2008-12-01 Marco Pantaleoni <>

* bug fixes.

2008-11-27 Marco Pantaleoni <>

* Added RelatedItemField, SelectPopupField,
SelectMultiplePopupField fields and corresponding widgets
(RelatedItemWidget, SelectPopupWidget, SelectMultiplePopupWidget

2008-11-25 Marco Pantaleoni <>

* Added extended fields and widgets. Modified form classes to use
new widgets.

* Fixes, added regression tests.

* Created.

Project details

Release history Release notifications | RSS feed

Download files

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

Files for softwarefabrica.django.forms, version
Filename, size File type Python version Upload date Hashes
Filename, size softwarefabrica.django.forms-0.9dev_BZR_r46_panta_elasticworld.org_20100301175748_ecls2dwys4lpjtwf-py2.4.egg (86.5 kB) File type Egg Python version 2.4 Upload date Hashes View
Filename, size softwarefabrica.django.forms-0.9dev_BZR_r46_panta_elasticworld.org_20100301175748_ecls2dwys4lpjtwf-py2.5.egg (86.1 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size softwarefabrica.django.forms-0.9dev_BZR_r46_panta_elasticworld.org_20100301175748_ecls2dwys4lpjtwf-py2.6.egg (86.0 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size (457.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page