Skip to content

Commit

Permalink
Release version 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Gaschignard committed Oct 23, 2019
1 parent 7d0d8c1 commit 93645eb
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 16 deletions.
44 changes: 41 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,56 @@
Changelog
---------

1.8.0 (in development)
~~~~~~~~~~~~~~~~~~~~~~
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`_: Support for Django 1.10. Thanks to MrJmad for the patch.
* `#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
~~~~~
Expand Down
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ 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`_

Expand Down
2 changes: 1 addition & 1 deletion floppyforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
warnings.warn(
"Unable to import floppyforms.gis, geometry widgets not available")

__version__ = '1.7.1.dev1'
__version__ = '1.8.0'
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,16 @@ def find_version(*file_paths):
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.4',
'Framework :: Django :: 1.5',
'Framework :: Django :: 1.6',
'Framework :: Django :: 1.7',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
zip_safe=False,
)
3 changes: 1 addition & 2 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
else:
template_directories = [
os.path.join(
os.path.dirname(django.__file__),
"forms/templates/"
os.path.dirname(django.__file__), "forms/templates/"
)
]
TEMPLATES = [
Expand Down

0 comments on commit 93645eb

Please sign in to comment.