django-floppyforms 1.2.0

Full control of form rendering in the templates

Full control of form rendering in the templates.

  • Author: Bruno Renié and contributors
  • Licence: BSD
  • Requirements: homework -- read this.

Installation

  • pip install -U django-floppyforms
  • Add floppyforms to your INSTALLED_APPS

For extensive documentation see the docs folder or read it on readthedocs

To install the in-development version of django-floppyforms, run pip install django-floppyforms==dev.

Help

Ask your questions on the #django-floppyforms IRC channel on freenode.

Bugs

Really? Oh well... Please Report. Or better, fix :)

Development

Thanks for asking!

Get the code:

git clone git@github.com:gregmuellegger/django-floppyforms.git
cd django-floppyforms
virtualenv -p python2 env
source env/bin/activate
add2virtualenv .

Install the development requirements:

pip install tox

Run the tests:

tox -e py27-1.6

You can see all the supported test configurations with tox -l.

Changelog

1.2.0

  • Subclasses of floppyforms.models.ModelForm did not convert widgets of form fields that were automatically created for the existing model fields into the floppyform variants. This is now changed, thanks to a patch by Stephen Burrows.

    Previously you had to set the widgets your self in a model form. For example you would write:

    import floppyforms as forms
    
    class ProfileForm(forms.ModelForm):
        class Meta:
            model = Profile
            widgets = {
                'name': forms.TextInput,
                'url': forms.URLInput,
                ...
            }
    

    Now this is done automatically. But since this is a kind-of backwardsincompatible change, you need to use a special import:

    import floppyforms.__future__ as forms
    
    class ProfileForm(forms.ModelForm):
        class Meta:
            model = Profile
    

    This feature will become the default behaviour in floppyforms 1.3.

    See the documentation for more information: http://django-floppyforms.readthedocs.org/en/latest/usage.html#modelforms

  • If you added an attribute with value 1 to the attrs kwargs (e.g. {'value': 1}, you would get no attribute value in the rendered html (e.g. value instead of value="1"). That's fixed now, thanks to Viktor Ershov for the report.

  • All floppyform widget classes now take a template_name argument in the __init__ and render method. Thanks to Carl Meyer for the patch.

BSD licence, see LICENSE file

Author

Bruno Renié

Pip

django-floppyforms==1.2.0

Classifiers

  • Programming Language :: Python :: 3
  • Programming Language :: Python
  • Natural Language :: English
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
django-floppyforms-1.2.0.tar.gz Source May 30, 2014 20,043
Version Release Date
1.2.0 May 30, 2014
1.1.1 Jan. 21, 2014
1.1 Feb. 13, 2013
1.0 June 11, 2012
0.4.7 Sept. 5, 2011
0.4.6 July 25, 2011
0.4.5 April 25, 2011
0.4.4 April 8, 2011
0.4.3 April 3, 2011
0.4.2 Feb. 7, 2011
0.4.1 Feb. 6, 2011
0.4 Feb. 6, 2011
0.3 Jan. 22, 2011
0.2 Jan. 20, 2011
0.1 Dec. 9, 2010
Date Package Version Action
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.6 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.7 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.4 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.5 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.2 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.3 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4.1 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 1.2.0 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.4 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.2 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.3 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 0.1 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 1.1 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 1.0 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms 1.1.1 Release Created
Nov. 4, 2014, 1:13 p.m. django-floppyforms Package Created