[bt] Version 2.0.22 Release Notes

Updated readme files with new version information and credits.
Version bump to 2.0.22.
master
Brandon Taylor 2017-03-14 22:04:23 -04:00
parent 60ac42cd2b
commit 1990e6653e
3 changed files with 31 additions and 20 deletions

View File

@ -19,7 +19,7 @@ Sorting inlines:
## Supported Django Versions ## Supported Django Versions
For Django 1.5.x to 1.9.x, use version 2.0.18. For Django 1.5.x to 1.9.x, use version 2.0.18.
For Django 1.10.x, use 2.0.19 or higher. For Django 1.10.x or higher, use the latest version.
### Other notes of interest regarding versions ### Other notes of interest regarding versions
django-admin-sortable 1.5.2 introduced backward-incompatible changes for Django 1.4.x django-admin-sortable 1.5.2 introduced backward-incompatible changes for Django 1.4.x
@ -530,8 +530,9 @@ ordering on top of that just seemed a little much in my opinion.
### Status ### Status
django-admin-sortable is currently used in production. django-admin-sortable is currently used in production.
### What's new in 2.0.21? ### What's new in 2.0.22?
- Fixed a regression introduced by [ Pull Request 143](https://github.com/iambrandontaylor/django-admin-sortable/pull/143) which caused models sortable by a foriegn key to not persist the sort order correctly. - Improved saving [Pull Request 166](https://github.com/iambrandontaylor/django-admin-sortable/pull/166) thanks [@sushifan](https://github.com/sushifan)
- Django 1.11.x compatibility [Pull Request 167](https://github.com/iambrandontaylor/django-admin-sortable/pull/16) thanks [@camilonova](https://github.com/camilonova)
### Future ### Future
- Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super. - Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super.

View File

@ -1,9 +1,7 @@
Django Admin Sortable Django Admin Sortable
===================== =====================
|PyPI version| |PyPI version| |Python versions| |Build Status|
|Python versions|
|Build Status|
This project makes it easy to add drag-and-drop ordering to any model in This project makes it easy to add drag-and-drop ordering to any model in
Django admin. Inlines for a sortable model may also be made sortable, Django admin. Inlines for a sortable model may also be made sortable,
@ -28,7 +26,7 @@ Supported Django Versions
For Django 1.5.x to 1.9.x, use version 2.0.18. For Django 1.5.x to 1.9.x, use version 2.0.18.
For Django 1.10.x, use 2.0.19 or higher. For Django 1.10.x or higher, use the latest version.
Other notes of interest regarding versions Other notes of interest regarding versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -53,7 +51,7 @@ Download django-admin-sortable from
`source <https://github.com/iambrandontaylor/django-admin-sortable/archive/master.zip>`__ `source <https://github.com/iambrandontaylor/django-admin-sortable/archive/master.zip>`__
1. Unzip the directory and cd into the uncompressed project directory 1. Unzip the directory and cd into the uncompressed project directory
2. 2.
- Optional: Enable your virtualenv - Optional: Enable your virtualenv
@ -67,8 +65,9 @@ Configuration
2. Ensure ``django.template.context_processors.static`` is in your 2. Ensure ``django.template.context_processors.static`` is in your
``TEMPLATES["OPTIONS"]["context_processors"]``. ``TEMPLATES["OPTIONS"]["context_processors"]``.
- (In older versions of Django, ensure ``django.core.context_processors.static`` is in - (In older versions of Django, ensure
``TEMPLATE_CONTEXT_PROCESSORS`` instead.) ``django.core.context_processors.static`` is in
``TEMPLATE_CONTEXT_PROCESSORS`` instead.)
3. Ensure that ``CSRF_COOKIE_HTTPONLY`` has not been set to ``True``, as 3. Ensure that ``CSRF_COOKIE_HTTPONLY`` has not been set to ``True``, as
django-admin-sortable is currently incompatible with that setting. django-admin-sortable is currently incompatible with that setting.
@ -114,6 +113,9 @@ and at minimum, define:
- ``Meta.ordering`` **must only contain one value**, otherwise, your - ``Meta.ordering`` **must only contain one value**, otherwise, your
objects will not be sorted correctly. objects will not be sorted correctly.
- **IMPORTANT**: You must name the field you use for ordering something
other than "order\_field" as this name is reserved by the
``SortableMixin`` class.
- It is recommended that you set ``editable=False`` and - It is recommended that you set ``editable=False`` and
``db_index=True`` on the field defined in ``Meta.ordering`` for a ``db_index=True`` on the field defined in ``Meta.ordering`` for a
seamless Django admin experience and faster lookups on the objects. seamless Django admin experience and faster lookups on the objects.
@ -604,20 +606,25 @@ with:
Notes Notes
~~~~~ ~~~~~
From ``django-cms 3.x`` the path of change_form.html has changed. Replace the follwing line: From ``django-cms 3.x`` the path of change\_form.html has changed.
Replace the follwing line:
.. code:: html .. code:: html
{% extends "admin/cms/page/plugin_change_form.html" %} {% extends "admin/cms/page/plugin_change_form.html" %}
with with
.. code:: html .. code:: html
{% extends "admin/cms/page/plugin/change_form.html" %} {% extends "admin/cms/page/plugin/change_form.html" %}
From ``django-admin-sortable 2.0.13`` the ``jquery.django-csrf.js`` was removed and you have to include the snippet-template. From ``django-admin-sortable 2.0.13`` the ``jquery.django-csrf.js`` was
Change the following line: removed and you have to include the snippet-template. Change the
following line:
.. code:: html .. code:: html
<script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script> <script type="text/javascript" src="{% static 'adminsortable/js/jquery.django-csrf.js' %}"></script>
to to
@ -626,7 +633,8 @@ to
{% include 'adminsortable/csrf/jquery.django-csrf.html' with csrf_cookie_name='csrftoken' %} {% include 'adminsortable/csrf/jquery.django-csrf.html' with csrf_cookie_name='csrftoken' %}
Please note, if you change the ``CSRF_COOKIE_NAME`` you have to adjust ``csrf_cookie_name='YOUR_CSRF_COOKIE_NAME'`` Please note, if you change the ``CSRF_COOKIE_NAME`` you have to adjust
``csrf_cookie_name='YOUR_CSRF_COOKIE_NAME'``
Rationale Rationale
~~~~~~~~~ ~~~~~~~~~
@ -648,13 +656,15 @@ Status
django-admin-sortable is currently used in production. django-admin-sortable is currently used in production.
What's new in 2.0.21? What's new in 2.0.22?
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
- Fixed a regression introduced by `Pull Request - Improved saving `Pull Request
143 <https://github.com/iambrandontaylor/django-admin-sortable/pull/143>`__ 166 <https://github.com/iambrandontaylor/django-admin-sortable/pull/166>`__
which caused models sortable by a foriegn key to not persist the sort thanks [@sushifan](https://github.com/sushifan)
order correctly. - Django 1.11.x compatibility `Pull Request
167 <https://github.com/iambrandontaylor/django-admin-sortable/pull/16>`__
thanks [@camilonova](https://github.com/camilonova)
Future Future
~~~~~~ ~~~~~~

View File

@ -1,4 +1,4 @@
VERSION = (2, 0, 21) VERSION = (2, 0, 22)
DEV_N = None DEV_N = None