django-floppyforms


Namedjango-floppyforms JSON
Version 1.9.0 PyPI version JSON
download
home_pagehttps://github.com/jazzband/django-floppyforms
SummaryFull control of form rendering in the templates
upload_time2020-05-20 02:42:10
maintainer
docs_urlNone
authorGregor Müllegger
requires_python
licenseBSD licence, see LICENSE file
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            django-floppyforms
==================

.. image:: https://jazzband.co/static/img/badge.svg
   :target: https://jazzband.co/
   :alt: Jazzband

.. image:: https://api.travis-ci.org/jazzband/django-floppyforms.png
   :alt: Build Status
   :target: https://travis-ci.org/jazzband/django-floppyforms

Full control of form rendering in the templates.

* Authors: Gregor Müllegger and many many `contributors`_
* Original creator: Bruno Renié started this project and kept it going for many years.
* Licence: BSD
* Requirements: homework -- read `this`_.

.. _contributors: https://github.com/jazzband/django-floppyforms/contributors
.. _this: http://diveintohtml5.info/forms.html

Installation
------------

* ``pip install -U django-floppyforms``
* Add ``floppyforms`` to your ``INSTALLED_APPS``

For those who want to mix and match with vanilla Django widgets, it is also recommended
to put Django's form template directory into your template directories::

    # in your template configuration
    TEMPLATES = [{
        ...,
        # inside the directories parameter
        'DIRS': [
            # include django's form templates
            os.path.join(
                os.path.dirname(django.__file__), "forms/templates/"
            ),
            ... # the rest of your template directories
    }]

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

.. _read it on readthedocs: http://django-floppyforms.readthedocs.org/

To install the `in-development version`_ of django-floppyforms, run ``pip
install "https://github.com/jazzband/django-floppyforms/tarball/master#egg=django-floppyforms"``.

.. _in-development version: https://github.com/jazzband/django-floppyforms

Help
----

Create a ticket in the `issues section on github`_ or ask your questions on the
#django-floppyforms IRC channel on freenode.

You can get professional consulting regarding django-floppyforms or any other
Django related work from django-floppyforms' maintainer `Gregor Müllegger`_.

.. _issues section on github: https://github.com/jazzband/django-floppyforms/issues
.. _Gregor Müllegger: http://gremu.net/

Bugs
----

Really? Oh well... Please Report. Or better, fix :) We are happy to help you
through the process of fixing and testing a bug. Just get in touch.

Development
-----------

Thanks for asking!

Get the code::

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

Install the development requirements::

    pip install "tox>=1.8"


Currently, you'll need to `install the GeoDjango requirements`_ when running tests.

.. _install the GeoDjango requirements: https://docs.djangoproject.com/en/3.0/ref/contrib/gis/install/geolibs/

Run the tests::

    tox
    tox -e py36-22

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


Changelog
---------

1.9.0
~~~~~

 This release changes the compatibility matrix for the project.

 We now support the following Django releases:
   - Django 2.2
   - Django 3.0

 We are also testing under the following Python versions:
   - Python 3.6
   - Python 3.7
   - Python 3.8


  No other significant changes in this release, but Django 1.11 and 2.1
  are no longer supported.

1.8.0
~~~~~

This is the first release to be done under the Jazzband organization.

It collects several compatibility fixes to support Django 1.11 and 2.1.

The currently tested versions of `django-floppyforms` is now:
 - Django 1.11 and Python 2.7 or 3.6
 - Django 2.1 and Python 3.6

In principle, we want to support any reasonable combination of Django and Python that still receives security releases, so if you are using an untested combination and hit an issue, bug reports are welcome.

*Breaking Change*:

Because Django's widgets now render through a form-specific template renderer, but `floppyforms` widgets
use the standard rendering template (that doesn't automatically include Django's form templates), it is
recommended to manuallyput Django's form template directory directly into your own template backend
configuration.

If you don't add the following, you might experience issues mixing and matching vanilla widgets with
floppyform widgets::

    import django

    TEMPLATES = [
        {
            'BACKEND': 'django.template.backends.django.DjangoTemplates',
            'DIRS': [
                ..., # your other template directories
                # django's own form template directories
                os.path.join(os.path.dirname(django.__file__), "forms/templates/",
            ],
            ...
        },
        ...
    ]


* `#176`_: Fix HTML validation for hidden textarea used with GIS widgets.
* `#191`_ + `#196`_ + `#209`_: Support for Django 1.11 and 2.1. Thanks to MrJmad and dryice for patches.
* `#194`_: Remove official support for Python 2.6 and Python 3.2.
* `#204`_: Use HTTPS for OpenStreetMap links. Thanks to dryice for the patch.

.. _#176: https://github.com/jazzband/django-floppyforms/issues/176
.. _#191: https://github.com/jazzband/django-floppyforms/pull/191
.. _#194: https://github.com/jazzband/django-floppyforms/pull/194
.. _#204: https://github.com/jazzband/django-floppyforms/pull/204
.. _#196: https://github.com/jazzband/django-floppyforms/pull/196
.. _#209: https://github.com/jazzband/django-floppyforms/pull/209

1.7.0
~~~~~

* `#171`_: Fix path to GIS widget images in ``openlayers.html`` template. The
  files coming with Django admin where used, but the naming changed in 1.9. We
  vendor these know to have better control over it.
* `#174`_: Support for setting your own Google Maps key in the
  ``BaseGMapWidget``. `See the documentation
  <http://django-floppyforms.readthedocs.io/en/latest/geodjango.html>`_ for
  details

.. _#171: https://github.com/jazzband/django-floppyforms/issues/171
.. _#174: https://github.com/jazzband/django-floppyforms/pull/174

1.6.2
~~~~~

* `#169`_: Use the attributes ``ClearableFileInput.initial_text``,
  ``ClearableFileInput.input_text``,
  ``ClearableFileInput.clear_checkbox_label`` to determine the used text in the
  template. This was inconsistent so far with Django's behaviour.

.. _#169: https://github.com/jazzband/django-floppyforms/issues/169

1.6.1
~~~~~

* `#167`_: Fix django-floppyforms' ``CheckboxInput.value_from_datadict`` which
  was inconsistent with Django's behaviour.

.. _#167: https://github.com/jazzband/django-floppyforms/issues/167

1.6.0
~~~~~

* `#160`_: Django 1.9 support! Thanks to Jonas Haag for the patch.

.. _#160: https://github.com/jazzband/django-floppyforms/pull/160

1.5.2
~~~~~

* `#156`_: The ``min``, ``max``, ``step`` attributes for ``DecimalField`` and
  ``FloatField`` were localized which can result in invalid values (rendering
  ``0.01`` as ``0,01`` in respective locales). Those attributes won't get
  localized anymore. Thanks to Yannick Chabbert for the fix.

.. _#156: https://github.com/jazzband/django-floppyforms/pull/156

1.5.1
~~~~~

* `FloatField`` now fills in ``min``, ``max``, and ``step`` attributes to match
  the behaviour of `DecimalField`. Leaving out the ``step`` attribute would
  result in widgets that only allow integers to be filled in (HTML 5 default
  for ``step`` is ``1``).

1.5.0
~~~~~

* `#148`_: Added support for custom ``label_suffix`` arguments in forms and fields.
* The contents in ``floppyforms/input.html`` is now wrapped in a ``{% block
  content %}`` for easier extending.
* `#70`_: `DecimalField`` now fills in ``min``, ``max``, and ``step`` attributes for
  better client side validation. Use the ``novalidate`` attribute on your
  ``<form>`` tag to disable HTML5 input validation in the browser. Thanks to
  caacree for the patch.

.. _#148: https://github.com/jazzband/django-floppyforms/issues/148
.. _#70: https://github.com/jazzband/django-floppyforms/issues/70

1.4.1
~~~~~

* Fixed source distribution to include all files in
  ``floppyforms/static/floppyforms/openlayers``.

1.4.0
~~~~~

* Every widget is now using its own template. Previously all widgets that are
  based on the HTML ``<input>`` tag used the generic ``floppyforms/input.html``
  template. Now the widgets each have a custom element for easier
  customisation. For example ``CheckboxInput`` now uses
  ``floppyforms/checkbox.html`` instead of ``floppyforms/input.html``. See
  `Widgets reference
  <http://django-floppyforms.readthedocs.org/en/latest/widgets-reference.html>`_
  for a complete list of available widgets and which templates they use.

* Adjusting the SRIDs used in the GeoDjango widgets to conform with
  Django 1.7. Thanks to Tyler Tipton for the patch.

* Python 3.2 is now officially supported.

* Django 1.8 is now officially supported. django-floppyforms no longers
  triggers Django deprecation warnings.

* Adding `OpenLayers`_ distribution to django-floppyforms static files in order
  to better support HTTPS setups when GIS widgets are used (See #15 for more
  details).

* Fix: ``python setup.py bdist_rpm`` failed because of wrong string encodings
  in setup.py. Thanks to Yuki Izumi for the fix.

* Fix: The ``CheckboxInput`` widget did detect different values in Python 2
  when given ``'False'`` and ``u'False'`` as data. Thanks to @artscoop for the
  patch.

* Fix: ``MultipleChoiceField`` can now correctly be rendered as hidden field by
  using the ``as_hidden`` helper in the template. That was not working
  previously as there was no value set for ``MultipleChoiceField.hidden_widget``.

.. _OpenLayers: http://openlayers.org/

1.3.0
~~~~~

* DateInput widget renders hardcoded "%Y-%m-%d" format. We don't allow custom
  formats there since the "%Y-%m-%d" format is what browsers are submitting
  with HTML5 date input fields. Thanks to Bojan Mihelac for the patch.

* Adding ``supports_microseconds`` attribute to all relevant widget classes.
  Thanks to Stephen Burrows for the patch.

* Using a property for ``Widget.is_hidden`` attribute on widgets to be in
  conformance with Django 1.7 default widget implementation.

* The docs mentioned that the current ``ModelForm`` behaviour in
  ``floppyforms.__future__`` will become the default in 1.3. This is postpone
  for one release and will be part of 1.4.

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 2.0.

  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.

1.1.1
~~~~~

* Fix for Django 1.6

* Fix for GIS widgets on Django 1.4 and some versions of GEOS.

1.1
~~~

* Added GenericIPAddressField.

* Django 1.5 and Python 3.3 support added.

* Django 1.3 support dropped.

* GIS widgets switched to stable OpenLayers release instead of a dev build.

* Fixed ``Textarea`` widget template to work with a non-empty
  ``TEMPLATE_STRING_IF_INVALID`` setting. Thanks to Leon Matthews for the
  report.

* Fixed context handling in widget rendering. It didn't take care of popping
  the context as often as it was pushed onto. This could cause strange
  behaviour in the template by leaking variables into outer scopes. Thanks to
  David Danier for the report.

* Added missing empty choice for selectboxes in ``SelectDateWidget``. Thanks
  fsx999 for the report.

* ``IntegerField`` now automatically passes its ``min_value`` and
  ``max_value`` (if provided) to the ``NumberInput`` widget.

* Added basic support for ``<datalist>`` elements for suggestions in
  ``Input`` widgets.

* ``date``, ``datetime`` and ``time`` inputs are not localized anymore. The
  HTML5 spec requires the rendered values to be RFC3339-compliant and the
  browsers are in charge of localization. If you still want localized
  date/time inputs, use those provided by Django or override the
  ``_format_value()`` method of the relevant widgets.

1.0
~~~

* cleaned up the behaviour of ``attrs``
* compatible with Django 1.3 and 1.4
* ``<optgroup>`` support in select widgets
* ``Select`` widgets: renamed ``choices`` context variable to ``optgroups``.
  This is **backwards-incompatible**: if you have custom templates for
  ``Select`` widgets, they need to be updated.
* ``get_context()`` is more reliable
* Added ``form``, ``formrow``, ``formfield``, ``formconfig`` and ``widget``
  template tags.
* Added template-based form layout system.
* Added ability to render widgets with the broader page context, for
  instance for django-sekizai compatibility.

0.4
~~~

* All widgets from Django have their floppyforms equivalent
* Added widgets for GeoDjango



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jazzband/django-floppyforms",
    "name": "django-floppyforms",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Gregor M\u00fcllegger",
    "author_email": "gregor@muellegger.de",
    "download_url": "https://files.pythonhosted.org/packages/12/51/0095a62807b3477eed0ed7d937efc747c7078c08dea30ab04cad13cc38a3/django-floppyforms-1.9.0.tar.gz",
    "platform": "",
    "description": "django-floppyforms\n==================\n\n.. image:: https://jazzband.co/static/img/badge.svg\n   :target: https://jazzband.co/\n   :alt: Jazzband\n\n.. image:: https://api.travis-ci.org/jazzband/django-floppyforms.png\n   :alt: Build Status\n   :target: https://travis-ci.org/jazzband/django-floppyforms\n\nFull control of form rendering in the templates.\n\n* Authors: Gregor M\u00fcllegger and many many `contributors`_\n* Original creator: Bruno Reni\u00e9 started this project and kept it going for many years.\n* Licence: BSD\n* Requirements: homework -- read `this`_.\n\n.. _contributors: https://github.com/jazzband/django-floppyforms/contributors\n.. _this: http://diveintohtml5.info/forms.html\n\nInstallation\n------------\n\n* ``pip install -U django-floppyforms``\n* Add ``floppyforms`` to your ``INSTALLED_APPS``\n\nFor those who want to mix and match with vanilla Django widgets, it is also recommended\nto put Django's form template directory into your template directories::\n\n    # in your template configuration\n    TEMPLATES = [{\n        ...,\n        # inside the directories parameter\n        'DIRS': [\n            # include django's form templates\n            os.path.join(\n                os.path.dirname(django.__file__), \"forms/templates/\"\n            ),\n            ... # the rest of your template directories\n    }]\n\nFor extensive documentation see the ``docs`` folder or `read it on\nreadthedocs`_\n\n.. _read it on readthedocs: http://django-floppyforms.readthedocs.org/\n\nTo install the `in-development version`_ of django-floppyforms, run ``pip\ninstall \"https://github.com/jazzband/django-floppyforms/tarball/master#egg=django-floppyforms\"``.\n\n.. _in-development version: https://github.com/jazzband/django-floppyforms\n\nHelp\n----\n\nCreate a ticket in the `issues section on github`_ or ask your questions on the\n#django-floppyforms IRC channel on freenode.\n\nYou can get professional consulting regarding django-floppyforms or any other\nDjango related work from django-floppyforms' maintainer `Gregor M\u00fcllegger`_.\n\n.. _issues section on github: https://github.com/jazzband/django-floppyforms/issues\n.. _Gregor M\u00fcllegger: http://gremu.net/\n\nBugs\n----\n\nReally? Oh well... Please Report. Or better, fix :) We are happy to help you\nthrough the process of fixing and testing a bug. Just get in touch.\n\nDevelopment\n-----------\n\nThanks for asking!\n\nGet the code::\n\n    git clone git@github.com:jazzband/django-floppyforms.git\n    cd django-floppyforms\n    virtualenv env\n    source env/bin/activate\n    add2virtualenv .\n\nInstall the development requirements::\n\n    pip install \"tox>=1.8\"\n\n\nCurrently, you'll need to `install the GeoDjango requirements`_ when running tests.\n\n.. _install the GeoDjango requirements: https://docs.djangoproject.com/en/3.0/ref/contrib/gis/install/geolibs/\n\nRun the tests::\n\n    tox\n    tox -e py36-22\n\nYou can see all the supported test configurations with ``tox -l``.\n\n\nChangelog\n---------\n\n1.9.0\n~~~~~\n\n This release changes the compatibility matrix for the project.\n\n We now support the following Django releases:\n   - Django 2.2\n   - Django 3.0\n\n We are also testing under the following Python versions:\n   - Python 3.6\n   - Python 3.7\n   - Python 3.8\n\n\n  No other significant changes in this release, but Django 1.11 and 2.1\n  are no longer supported.\n\n1.8.0\n~~~~~\n\nThis is the first release to be done under the Jazzband organization.\n\nIt collects several compatibility fixes to support Django 1.11 and 2.1.\n\nThe currently tested versions of `django-floppyforms` is now:\n - Django 1.11 and Python 2.7 or 3.6\n - Django 2.1 and Python 3.6\n\nIn principle, we want to support any reasonable combination of Django and Python that still receives security releases, so if you are using an untested combination and hit an issue, bug reports are welcome.\n\n*Breaking Change*:\n\nBecause Django's widgets now render through a form-specific template renderer, but `floppyforms` widgets\nuse the standard rendering template (that doesn't automatically include Django's form templates), it is\nrecommended to manuallyput Django's form template directory directly into your own template backend\nconfiguration.\n\nIf you don't add the following, you might experience issues mixing and matching vanilla widgets with\nfloppyform widgets::\n\n    import django\n\n    TEMPLATES = [\n        {\n            'BACKEND': 'django.template.backends.django.DjangoTemplates',\n            'DIRS': [\n                ..., # your other template directories\n                # django's own form template directories\n                os.path.join(os.path.dirname(django.__file__), \"forms/templates/\",\n            ],\n            ...\n        },\n        ...\n    ]\n\n\n* `#176`_: Fix HTML validation for hidden textarea used with GIS widgets.\n* `#191`_ + `#196`_ + `#209`_: Support for Django 1.11 and 2.1. Thanks to MrJmad and dryice for patches.\n* `#194`_: Remove official support for Python 2.6 and Python 3.2.\n* `#204`_: Use HTTPS for OpenStreetMap links. Thanks to dryice for the patch.\n\n.. _#176: https://github.com/jazzband/django-floppyforms/issues/176\n.. _#191: https://github.com/jazzband/django-floppyforms/pull/191\n.. _#194: https://github.com/jazzband/django-floppyforms/pull/194\n.. _#204: https://github.com/jazzband/django-floppyforms/pull/204\n.. _#196: https://github.com/jazzband/django-floppyforms/pull/196\n.. _#209: https://github.com/jazzband/django-floppyforms/pull/209\n\n1.7.0\n~~~~~\n\n* `#171`_: Fix path to GIS widget images in ``openlayers.html`` template. The\n  files coming with Django admin where used, but the naming changed in 1.9. We\n  vendor these know to have better control over it.\n* `#174`_: Support for setting your own Google Maps key in the\n  ``BaseGMapWidget``. `See the documentation\n  <http://django-floppyforms.readthedocs.io/en/latest/geodjango.html>`_ for\n  details\n\n.. _#171: https://github.com/jazzband/django-floppyforms/issues/171\n.. _#174: https://github.com/jazzband/django-floppyforms/pull/174\n\n1.6.2\n~~~~~\n\n* `#169`_: Use the attributes ``ClearableFileInput.initial_text``,\n  ``ClearableFileInput.input_text``,\n  ``ClearableFileInput.clear_checkbox_label`` to determine the used text in the\n  template. This was inconsistent so far with Django's behaviour.\n\n.. _#169: https://github.com/jazzband/django-floppyforms/issues/169\n\n1.6.1\n~~~~~\n\n* `#167`_: Fix django-floppyforms' ``CheckboxInput.value_from_datadict`` which\n  was inconsistent with Django's behaviour.\n\n.. _#167: https://github.com/jazzband/django-floppyforms/issues/167\n\n1.6.0\n~~~~~\n\n* `#160`_: Django 1.9 support! Thanks to Jonas Haag for the patch.\n\n.. _#160: https://github.com/jazzband/django-floppyforms/pull/160\n\n1.5.2\n~~~~~\n\n* `#156`_: The ``min``, ``max``, ``step`` attributes for ``DecimalField`` and\n  ``FloatField`` were localized which can result in invalid values (rendering\n  ``0.01`` as ``0,01`` in respective locales). Those attributes won't get\n  localized anymore. Thanks to Yannick Chabbert for the fix.\n\n.. _#156: https://github.com/jazzband/django-floppyforms/pull/156\n\n1.5.1\n~~~~~\n\n* `FloatField`` now fills in ``min``, ``max``, and ``step`` attributes to match\n  the behaviour of `DecimalField`. Leaving out the ``step`` attribute would\n  result in widgets that only allow integers to be filled in (HTML 5 default\n  for ``step`` is ``1``).\n\n1.5.0\n~~~~~\n\n* `#148`_: Added support for custom ``label_suffix`` arguments in forms and fields.\n* The contents in ``floppyforms/input.html`` is now wrapped in a ``{% block\n  content %}`` for easier extending.\n* `#70`_: `DecimalField`` now fills in ``min``, ``max``, and ``step`` attributes for\n  better client side validation. Use the ``novalidate`` attribute on your\n  ``<form>`` tag to disable HTML5 input validation in the browser. Thanks to\n  caacree for the patch.\n\n.. _#148: https://github.com/jazzband/django-floppyforms/issues/148\n.. _#70: https://github.com/jazzband/django-floppyforms/issues/70\n\n1.4.1\n~~~~~\n\n* Fixed source distribution to include all files in\n  ``floppyforms/static/floppyforms/openlayers``.\n\n1.4.0\n~~~~~\n\n* Every widget is now using its own template. Previously all widgets that are\n  based on the HTML ``<input>`` tag used the generic ``floppyforms/input.html``\n  template. Now the widgets each have a custom element for easier\n  customisation. For example ``CheckboxInput`` now uses\n  ``floppyforms/checkbox.html`` instead of ``floppyforms/input.html``. See\n  `Widgets reference\n  <http://django-floppyforms.readthedocs.org/en/latest/widgets-reference.html>`_\n  for a complete list of available widgets and which templates they use.\n\n* Adjusting the SRIDs used in the GeoDjango widgets to conform with\n  Django 1.7. Thanks to Tyler Tipton for the patch.\n\n* Python 3.2 is now officially supported.\n\n* Django 1.8 is now officially supported. django-floppyforms no longers\n  triggers Django deprecation warnings.\n\n* Adding `OpenLayers`_ distribution to django-floppyforms static files in order\n  to better support HTTPS setups when GIS widgets are used (See #15 for more\n  details).\n\n* Fix: ``python setup.py bdist_rpm`` failed because of wrong string encodings\n  in setup.py. Thanks to Yuki Izumi for the fix.\n\n* Fix: The ``CheckboxInput`` widget did detect different values in Python 2\n  when given ``'False'`` and ``u'False'`` as data. Thanks to @artscoop for the\n  patch.\n\n* Fix: ``MultipleChoiceField`` can now correctly be rendered as hidden field by\n  using the ``as_hidden`` helper in the template. That was not working\n  previously as there was no value set for ``MultipleChoiceField.hidden_widget``.\n\n.. _OpenLayers: http://openlayers.org/\n\n1.3.0\n~~~~~\n\n* DateInput widget renders hardcoded \"%Y-%m-%d\" format. We don't allow custom\n  formats there since the \"%Y-%m-%d\" format is what browsers are submitting\n  with HTML5 date input fields. Thanks to Bojan Mihelac for the patch.\n\n* Adding ``supports_microseconds`` attribute to all relevant widget classes.\n  Thanks to Stephen Burrows for the patch.\n\n* Using a property for ``Widget.is_hidden`` attribute on widgets to be in\n  conformance with Django 1.7 default widget implementation.\n\n* The docs mentioned that the current ``ModelForm`` behaviour in\n  ``floppyforms.__future__`` will become the default in 1.3. This is postpone\n  for one release and will be part of 1.4.\n\n1.2.0\n~~~~~\n\n* Subclasses of ``floppyforms.models.ModelForm`` did not convert widgets of\n  form fields that were automatically created for the existing model fields\n  into the floppyform variants. This is now changed, thanks to a patch by\n  Stephen Burrows.\n\n  Previously you had to set the widgets your self in a model form. For example\n  you would write::\n\n    import floppyforms as forms\n\n    class ProfileForm(forms.ModelForm):\n        class Meta:\n            model = Profile\n            widgets = {\n                'name': forms.TextInput,\n                'url': forms.URLInput,\n                ...\n            }\n\n  Now this is done automatically. But since this is a kind-of\n  backwardsincompatible change, you need to use a special import::\n\n    import floppyforms.__future__ as forms\n\n    class ProfileForm(forms.ModelForm):\n        class Meta:\n            model = Profile\n\n  This feature will become the default behaviour in floppyforms 2.0.\n\n  See the documentation for more information:\n  http://django-floppyforms.readthedocs.org/en/latest/usage.html#modelforms\n\n* If you added an attribute with value 1 to the attrs kwargs (e.g. ``{'value':\n  1}``, you would get no attribute value in the rendered html (e.g. ``value``\n  instead of ``value=\"1\"``). That's fixed now, thanks to Viktor Ershov for the\n  report.\n\n* All floppyform widget classes now take a ``template_name`` argument in the\n  ``__init__`` and ``render`` method. Thanks to Carl Meyer for the patch.\n\n1.1.1\n~~~~~\n\n* Fix for Django 1.6\n\n* Fix for GIS widgets on Django 1.4 and some versions of GEOS.\n\n1.1\n~~~\n\n* Added GenericIPAddressField.\n\n* Django 1.5 and Python 3.3 support added.\n\n* Django 1.3 support dropped.\n\n* GIS widgets switched to stable OpenLayers release instead of a dev build.\n\n* Fixed ``Textarea`` widget template to work with a non-empty\n  ``TEMPLATE_STRING_IF_INVALID`` setting. Thanks to Leon Matthews for the\n  report.\n\n* Fixed context handling in widget rendering. It didn't take care of popping\n  the context as often as it was pushed onto. This could cause strange\n  behaviour in the template by leaking variables into outer scopes. Thanks to\n  David Danier for the report.\n\n* Added missing empty choice for selectboxes in ``SelectDateWidget``. Thanks\n  fsx999 for the report.\n\n* ``IntegerField`` now automatically passes its ``min_value`` and\n  ``max_value`` (if provided) to the ``NumberInput`` widget.\n\n* Added basic support for ``<datalist>`` elements for suggestions in\n  ``Input`` widgets.\n\n* ``date``, ``datetime`` and ``time`` inputs are not localized anymore. The\n  HTML5 spec requires the rendered values to be RFC3339-compliant and the\n  browsers are in charge of localization. If you still want localized\n  date/time inputs, use those provided by Django or override the\n  ``_format_value()`` method of the relevant widgets.\n\n1.0\n~~~\n\n* cleaned up the behaviour of ``attrs``\n* compatible with Django 1.3 and 1.4\n* ``<optgroup>`` support in select widgets\n* ``Select`` widgets: renamed ``choices`` context variable to ``optgroups``.\n  This is **backwards-incompatible**: if you have custom templates for\n  ``Select`` widgets, they need to be updated.\n* ``get_context()`` is more reliable\n* Added ``form``, ``formrow``, ``formfield``, ``formconfig`` and ``widget``\n  template tags.\n* Added template-based form layout system.\n* Added ability to render widgets with the broader page context, for\n  instance for django-sekizai compatibility.\n\n0.4\n~~~\n\n* All widgets from Django have their floppyforms equivalent\n* Added widgets for GeoDjango\n\n\n",
    "bugtrack_url": null,
    "license": "BSD licence, see LICENSE file",
    "summary": "Full control of form rendering in the templates",
    "version": "1.9.0",
    "project_urls": {
        "Homepage": "https://github.com/jazzband/django-floppyforms"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "823aaacc7037164068b2dedf9b2883cf685bcc317c63aeee56360e9d420b35ce",
                "md5": "9ef90b107eb23ae9103a4be6296e8492",
                "sha256": "5b3f6891463149b83c44d2bd6109ce32de3d848e2ff7dbc02c41c65562ddf633"
            },
            "downloads": -1,
            "filename": "django_floppyforms-1.9.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9ef90b107eb23ae9103a4be6296e8492",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 306190,
            "upload_time": "2020-05-20T02:41:28",
            "upload_time_iso_8601": "2020-05-20T02:41:28.563778Z",
            "url": "https://files.pythonhosted.org/packages/82/3a/aacc7037164068b2dedf9b2883cf685bcc317c63aeee56360e9d420b35ce/django_floppyforms-1.9.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "12510095a62807b3477eed0ed7d937efc747c7078c08dea30ab04cad13cc38a3",
                "md5": "806d4291eacf2077c871888e2fe066dc",
                "sha256": "d620f1ed7ae3fc0377803e5ba2df4afb2d4cdda7b13fdf0a71840da0b5e5aae8"
            },
            "downloads": -1,
            "filename": "django-floppyforms-1.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "806d4291eacf2077c871888e2fe066dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1372087,
            "upload_time": "2020-05-20T02:42:10",
            "upload_time_iso_8601": "2020-05-20T02:42:10.161286Z",
            "url": "https://files.pythonhosted.org/packages/12/51/0095a62807b3477eed0ed7d937efc747c7078c08dea30ab04cad13cc38a3/django-floppyforms-1.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-05-20 02:42:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jazzband",
    "github_project": "django-floppyforms",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "django-floppyforms"
}
        
Elapsed time: 0.20452s