Skip to content

Commit 93645eb

Browse files
author
Raphael Gaschignard
committed
Release version 1.8.0
1 parent 7d0d8c1 commit 93645eb

File tree

5 files changed

+61
-16
lines changed

5 files changed

+61
-16
lines changed

CHANGES.rst

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,56 @@
11
Changelog
22
---------
33

4-
1.8.0 (in development)
5-
~~~~~~~~~~~~~~~~~~~~~~
4+
1.8.0
5+
~~~~~
6+
7+
This is the first release to be done under the Jazzband organization.
8+
9+
It collects several compatibility fixes to support Django 1.11 and 2.1.
10+
11+
The currently tested versions of `django-floppyforms` is now:
12+
- Django 1.11 and Python 2.7 or 3.6
13+
- Django 2.1 and Python 3.6
14+
15+
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.
16+
17+
*Breaking Change*:
18+
19+
Because Django's widgets now render through a form-specific template renderer, but `floppyforms` widgets
20+
use the standard rendering template (that doesn't automatically include Django's form templates), it is
21+
recommended to manuallyput Django's form template directory directly into your own template backend
22+
configuration.
23+
24+
If you don't add the following, you might experience issues mixing and matching vanilla widgets with
25+
floppyform widgets::
26+
27+
import django
28+
29+
TEMPLATES = [
30+
{
31+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
32+
'DIRS': [
33+
..., # your other template directories
34+
# django's own form template directories
35+
os.path.join(os.path.dirname(django.__file__), "forms/templates/",
36+
],
37+
...
38+
},
39+
...
40+
]
41+
642

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

1248
.. _#176: https://github.com/jazzband/django-floppyforms/issues/176
1349
.. _#191: https://github.com/jazzband/django-floppyforms/pull/191
1450
.. _#194: https://github.com/jazzband/django-floppyforms/pull/194
1551
.. _#204: https://github.com/jazzband/django-floppyforms/pull/204
52+
.. _#196: https://github.com/jazzband/django-floppyforms/pull/196
53+
.. _#209: https://github.com/jazzband/django-floppyforms/pull/209
1654

1755
1.7.0
1856
~~~~~

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ Installation
2525
* ``pip install -U django-floppyforms``
2626
* Add ``floppyforms`` to your ``INSTALLED_APPS``
2727

28+
For those who want to mix and match with vanilla Django widgets, it is also recommended
29+
to put Django's form template directory into your template directories::
30+
31+
# in your template configuration
32+
TEMPLATES = [{
33+
...,
34+
# inside the directories parameter
35+
'DIRS': [
36+
# include django's form templates
37+
os.path.join(
38+
os.path.dirname(django.__file__), "forms/templates/"
39+
),
40+
... # the rest of your template directories
41+
}]
42+
2843
For extensive documentation see the ``docs`` folder or `read it on
2944
readthedocs`_
3045

floppyforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
warnings.warn(
2121
"Unable to import floppyforms.gis, geometry widgets not available")
2222

23-
__version__ = '1.7.1.dev1'
23+
__version__ = '1.8.0'

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,16 @@ def find_version(*file_paths):
3737
'Development Status :: 5 - Production/Stable',
3838
'Environment :: Web Environment',
3939
'Framework :: Django',
40-
'Framework :: Django :: 1.4',
41-
'Framework :: Django :: 1.5',
42-
'Framework :: Django :: 1.6',
43-
'Framework :: Django :: 1.7',
44-
'Framework :: Django :: 1.8',
45-
'Framework :: Django :: 1.9',
46-
'Framework :: Django :: 1.10',
40+
'Framework :: Django :: 1.11',
41+
'Framework :: Django :: 2.1',
4742
'Intended Audience :: Developers',
4843
'License :: OSI Approved :: BSD License',
4944
'Natural Language :: English',
5045
'Programming Language :: Python',
5146
'Programming Language :: Python :: 2',
5247
'Programming Language :: Python :: 2.7',
5348
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.3',
55-
'Programming Language :: Python :: 3.4',
56-
'Programming Language :: Python :: 3.5',
49+
'Programming Language :: Python :: 3.6',
5750
],
5851
zip_safe=False,
5952
)

tests/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
else:
3333
template_directories = [
3434
os.path.join(
35-
os.path.dirname(django.__file__),
36-
"forms/templates/"
35+
os.path.dirname(django.__file__), "forms/templates/"
3736
)
3837
]
3938
TEMPLATES = [

0 commit comments

Comments
 (0)