Django-sorted-m2m

Latest version: v2.0.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

1.5.0

-----

* `101`_: Add support for a custom base class for the many to many intermediate
class. See the README for documentation. Thank you Rohith Asrk for the patch.
* `87`_: Fix ``AlterSortedManyToManyField`` operation to support custom set
``_sort_field_name``.

.. _101: https://github.com/gregmuellegger/django-sortedm2m/pull/101
.. _87: https://github.com/gregmuellegger/django-sortedm2m/issues/87

1.4.0

-----

* `104`_: Add compatibility for Django 1.10 and 1.11!
Thank you Frankie Dintino for the patch.
* `94`_: Add french translation files. Mainly for strings in the admin.
Thanks to ppython for the patch.
* `93`_: Prevent users from accidentally importing and using
``ManyToManyField`` instead of ``SortedManyToManyField`` from ``sortedm2m``.
Thanks Dayne May for the patch.

.. _104: https://github.com/gregmuellegger/django-sortedm2m/pull/104
.. _94: https://github.com/gregmuellegger/django-sortedm2m/pull/94
.. _93: https://github.com/gregmuellegger/django-sortedm2m/pull/93

1.3.3

-----

* `91`_ & `92`_: Fix admin widget, when used with Django 1.10. The add a new
item opup was not closing. Thanks to Tipuch for the patch.

.. _91: https://github.com/gregmuellegger/django-sortedm2m/issues/91
.. _92: https://github.com/gregmuellegger/django-sortedm2m/pull/92

1.3.2

-----

* `80`_ & `83`_: Fix ``SortedMultipleChoiceField.clean`` if the validated
value is ``None``. Thanks to Alex Mannhold for the patch.

.. _80: https://github.com/gregmuellegger/django-sortedm2m/issues/80
.. _83: https://github.com/gregmuellegger/django-sortedm2m/pull/83

1.3.1

-----

* `57`_ & `81`_: Fix add related object popup error prevents operation when
no related objects already exist. Thanks to Vadim Sikora for the fix.

.. _57: https://github.com/gregmuellegger/django-sortedm2m/issue/57
.. _81: https://github.com/gregmuellegger/django-sortedm2m/pull/81

1.3.0

-----

* `79`_: Use `.sortedm2m-item` selector in the widget's JavaScript code to
target the list items. This was previously `ul.sortedm2m li`. This improves
compatibility other markup that does not want to use `ul`/`li` tags. Thanks
to Michal Dabski for the patch.

**Note:** If you use custom markup with the JavaScript code, you need to make
sure that the items now have the `sortedm2m-item` class name.

* `76`_: Add support for to_field_name to SortedMultipleChoiceField. Thanks
to Conrad Kramer for the patch.

.. _76: https://github.com/gregmuellegger/django-sortedm2m/pull/76
.. _79: https://github.com/gregmuellegger/django-sortedm2m/pull/79

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.