| 1 |
Changelog |
| 2 |
========= |
| 3 |
|
| 4 |
3.1.1 |
| 5 |
----- |
| 6 |
* `#191`_: Fixed JS bug for popup in Django admin |
| 7 |
|
| 8 |
.. _#191: https://github.com/jazzband/django-sortedm2m/pull/191 |
| 9 |
|
| 10 |
3.1.0 |
| 11 |
----- |
| 12 |
* `#178`_: Bug fixes |
| 13 |
* `#178`_: Fixed Pylint error |
| 14 |
* `#175`_: Fixed jQuery UI error |
| 15 |
* `#183`_: Migrated to GitHub Actions for CI |
| 16 |
* `#184`_: Added support for Django 3.2 |
| 17 |
|
| 18 |
.. _#170: https://github.com/jazzband/django-sortedm2m/pull/170 |
| 19 |
.. _#178: https://github.com/jazzband/django-sortedm2m/pull/178 |
| 20 |
.. _#175: https://github.com/jazzband/django-sortedm2m/pull/175 |
| 21 |
.. _#183: https://github.com/jazzband/django-sortedm2m/pull/183 |
| 22 |
.. _#184: https://github.com/jazzband/django-sortedm2m/pull/184 |
| 23 |
|
| 24 |
3.0.2 |
| 25 |
----- |
| 26 |
* `#168`_: Restored `admin/js/jquery.init.js` |
| 27 |
|
| 28 |
.. _#168: https://github.com/jazzband/django-sortedm2m/pull/168 |
| 29 |
|
| 30 |
3.0.1 |
| 31 |
----- |
| 32 |
* `#164`_: Added all locales to distributable |
| 33 |
* `#162`_: Added missing files to MANIFEST.in, and removed .DS_Store files |
| 34 |
* `#150`_: Added German and Spanish translations |
| 35 |
* `#149`_: Removed `admin/js/jquery.init.js` from `SortedCheckboxSelectMultiple` |
| 36 |
|
| 37 |
.. _#164: https://github.com/jazzband/django-sortedm2m/pull/164 |
| 38 |
.. _#162: https://github.com/jazzband/django-sortedm2m/pull/162 |
| 39 |
.. _#150: https://github.com/jazzband/django-sortedm2m/pull/150 |
| 40 |
.. _#149: https://github.com/jazzband/django-sortedm2m/pull/149 |
| 41 |
|
| 42 |
3.0.0 |
| 43 |
----- |
| 44 |
* `#147`_: Dropped support for Django 2.0 |
| 45 |
* `#152`_: Dropped support for Django 1.10 |
| 46 |
* `#152`_: Add support for Python 3.8 |
| 47 |
* `#152`_: Add support for Django 3.0 |
| 48 |
|
| 49 |
.. _#147: https://github.com/jazzband/django-sortedm2m/issues/147 |
| 50 |
.. _#152: https://github.com/jazzband/django-sortedm2m/issues/152 |
| 51 |
|
| 52 |
2.0.0 |
| 53 |
----- |
| 54 |
* `#135`_: Updated README with Jazzband details, and added CONTRIBUTING.md |
| 55 |
* `#136`_: Dropped support for Python 2.6 and 3.3, and Django < 1.11 |
| 56 |
* `#130`_: Added support for Python 3.7 and Django 2.0 to 2.2 |
| 57 |
* `#130`_: Add support of custom through models (only for Django >= 2.2) |
| 58 |
* `#138`_: Added coverage reporting |
| 59 |
|
| 60 |
.. _#130: https://github.com/jazzband/django-sortedm2m/issues/130 |
| 61 |
.. _#135: https://github.com/jazzband/django-sortedm2m/pull/135 |
| 62 |
.. _#136: https://github.com/jazzband/django-sortedm2m/pull/136 |
| 63 |
.. _#138: https://github.com/jazzband/django-sortedm2m/pull/138 |
| 64 |
|
| 65 |
1.5.0 |
| 66 |
----- |
| 67 |
|
| 68 |
* `#101`_: Add support for a custom base class for the many to many intermediate |
| 69 |
class. See the README for documentation. Thank you Rohith Asrk for the patch. |
| 70 |
* `#87`_: Fix ``AlterSortedManyToManyField`` operation to support custom set |
| 71 |
``_sort_field_name``. |
| 72 |
|
| 73 |
.. _#101: https://github.com/jazzband/django-sortedm2m/pull/101 |
| 74 |
.. _#87: https://github.com/jazzband/django-sortedm2m/issues/87 |
| 75 |
|
| 76 |
1.4.0 |
| 77 |
----- |
| 78 |
|
| 79 |
* `#104`_: Add compatibility for Django 1.10 and 1.11! |
| 80 |
Thank you Frankie Dintino for the patch. |
| 81 |
* `#94`_: Add french translation files. Mainly for strings in the admin. |
| 82 |
Thanks to ppython for the patch. |
| 83 |
* `#93`_: Prevent users from accidentally importing and using |
| 84 |
``ManyToManyField`` instead of ``SortedManyToManyField`` from ``sortedm2m``. |
| 85 |
Thanks Dayne May for the patch. |
| 86 |
|
| 87 |
.. _#104: https://github.com/jazzband/django-sortedm2m/pull/104 |
| 88 |
.. _#94: https://github.com/jazzband/django-sortedm2m/pull/94 |
| 89 |
.. _#93: https://github.com/jazzband/django-sortedm2m/pull/93 |
| 90 |
|
| 91 |
1.3.3 |
| 92 |
----- |
| 93 |
|
| 94 |
* `#91`_ & `#92`_: Fix admin widget, when used with Django 1.10. The add a new |
| 95 |
item opup was not closing. Thanks to Tipuch for the patch. |
| 96 |
|
| 97 |
.. _#91: https://github.com/jazzband/django-sortedm2m/issues/91 |
| 98 |
.. _#92: https://github.com/jazzband/django-sortedm2m/pull/92 |
| 99 |
|
| 100 |
1.3.2 |
| 101 |
----- |
| 102 |
|
| 103 |
* `#80`_ & `#83`_: Fix ``SortedMultipleChoiceField.clean`` if the validated |
| 104 |
value is ``None``. Thanks to Alex Mannhold for the patch. |
| 105 |
|
| 106 |
.. _#80: https://github.com/jazzband/django-sortedm2m/issues/80 |
| 107 |
.. _#83: https://github.com/jazzband/django-sortedm2m/pull/83 |
| 108 |
|
| 109 |
1.3.1 |
| 110 |
----- |
| 111 |
|
| 112 |
* `#57`_ & `#81`_: Fix add related object popup error prevents operation when |
| 113 |
no related objects already exist. Thanks to Vadim Sikora for the fix. |
| 114 |
|
| 115 |
.. _#57: https://github.com/jazzband/django-sortedm2m/issue/57 |
| 116 |
.. _#81: https://github.com/jazzband/django-sortedm2m/pull/81 |
| 117 |
|
| 118 |
1.3.0 |
| 119 |
----- |
| 120 |
|
| 121 |
* `#79`_: Use `.sortedm2m-item` selector in the widget's JavaScript code to |
| 122 |
target the list items. This was previously `ul.sortedm2m li`. This improves |
| 123 |
compatibility other markup that does not want to use `ul`/`li` tags. Thanks |
| 124 |
to Michal Dabski for the patch. |
| 125 |
|
| 126 |
**Note:** If you use custom markup with the JavaScript code, you need to make |
| 127 |
sure that the items now have the `sortedm2m-item` class name. |
| 128 |
|
| 129 |
* `#76`_: Add support for to_field_name to SortedMultipleChoiceField. Thanks |
| 130 |
to Conrad Kramer for the patch. |
| 131 |
|
| 132 |
.. _#76: https://github.com/jazzband/django-sortedm2m/pull/76 |
| 133 |
.. _#79: https://github.com/jazzband/django-sortedm2m/pull/79 |
| 134 |
|
| 135 |
1.2.2 |
| 136 |
----- |
| 137 |
|
| 138 |
* `#75`_: Fix "add another" admin popup. It didn't refresh the list of items in Django |
| 139 |
1.8+. Thanks to Vadim Sikora for the patch. |
| 140 |
|
| 141 |
.. _#75: https://github.com/jazzband/django-sortedm2m/pull/75 |
| 142 |
|
| 143 |
1.2.1 |
| 144 |
----- |
| 145 |
|
| 146 |
* *skipped* |
| 147 |
|
| 148 |
1.2.0 |
| 149 |
----- |
| 150 |
|
| 151 |
* Dropping Python 3.2 support. It has reached end of life in February 2016. |
| 152 |
|
| 153 |
1.1.2 |
| 154 |
----- |
| 155 |
|
| 156 |
* `#71`_: Don't break collectstatic for some cases. Therefore we removed the |
| 157 |
STATIC_URL prefix from the form media definition in |
| 158 |
``SortedCheckboxSelectMultiple``. Thanks to Kirill Ermolov for the |
| 159 |
patch. |
| 160 |
|
| 161 |
.. _#71: https://github.com/jazzband/django-sortedm2m/issues/71 |
| 162 |
|
| 163 |
1.1.1 |
| 164 |
----- |
| 165 |
|
| 166 |
* `#70`_: CSS fix for Django 1.9 new admin design. Thanks to Maarten Draijer |
| 167 |
for the patch. |
| 168 |
|
| 169 |
.. _#70: https://github.com/jazzband/django-sortedm2m/pull/70 |
| 170 |
|
| 171 |
1.1.0 |
| 172 |
----- |
| 173 |
|
| 174 |
* `#59`_, `#65`_, `#68`_: Django 1.9 support. Thanks to Scott Kyle and Jasper Maes for |
| 175 |
patches. |
| 176 |
* `#67`_: Support for disabling migrations for some models, that can be |
| 177 |
decided by Django's DB router (with the ``allow_migrate_model`` method). |
| 178 |
Thanks to @hstanev for the patch. |
| 179 |
|
| 180 |
.. _#59: https://github.com/jazzband/django-sortedm2m/pull/59 |
| 181 |
.. _#65: https://github.com/jazzband/django-sortedm2m/pull/65 |
| 182 |
.. _#67: https://github.com/jazzband/django-sortedm2m/pull/67 |
| 183 |
.. _#68: https://github.com/jazzband/django-sortedm2m/pull/68 |
| 184 |
|
| 185 |
1.0.2 |
| 186 |
----- |
| 187 |
|
| 188 |
* `#56`_: Fix bug where order is wrong after adding objects. That had to do |
| 189 |
with using the ``count`` of the m2m objects for the next ``sort_value`` |
| 190 |
value. We now use the corret ``Max`` aggregation to make sure that newly |
| 191 |
added objects will be in order. Thanks to Scott Kyle for the report and |
| 192 |
patch. |
| 193 |
|
| 194 |
.. _#56: https://github.com/jazzband/django-sortedm2m/pull/56 |
| 195 |
|
| 196 |
1.0.1 |
| 197 |
----- |
| 198 |
|
| 199 |
* Performance fix for sorted m2m admin widget. See `#54`_ for details. Thanks |
| 200 |
to Jonathan Liuti for fixing this. |
| 201 |
|
| 202 |
.. _#54: https://github.com/jazzband/django-sortedm2m/pull/54 |
| 203 |
|
| 204 |
1.0.0 |
| 205 |
----- |
| 206 |
|
| 207 |
* Hooray, we officially declare **django-sortedm2m** to be stable and |
| 208 |
promise to be backwards compatible to new releases (we already doing good |
| 209 |
since since the beginning in that regard). |
| 210 |
* Django 1.8 support for ``AlterSortedManyToManyField`` operation. Thanks to |
| 211 |
Nicolas Trésegnie for starting the implementation. |
| 212 |
|
| 213 |
0.10.0 |
| 214 |
------ |
| 215 |
|
| 216 |
* The creation of the sortedm2m intermediate model and database table is now |
| 217 |
fully done inside of the ``SortedManyToManyField`` class. That makes it much |
| 218 |
easier to modify the creation of this when creating a custom subclass of this |
| 219 |
field. See `#49`_ for an example usecase. |
| 220 |
* Adding support for the custom field arguments like ``sorted`` and |
| 221 |
``sort_value_field_name`` in Django 1.7 migrations. Thanks to Christian |
| 222 |
Kohlstedde for the patch. |
| 223 |
|
| 224 |
.. _#49: https://github.com/jazzband/django-sortedm2m/issues/49 |
| 225 |
|
| 226 |
0.9.5 |
| 227 |
----- |
| 228 |
|
| 229 |
* Fixing ``setup.py`` when run on a system that does not use UTF-8 as default |
| 230 |
encoding. See `#48`_ for details. Thanks to Richard Mitchell for the patch. |
| 231 |
|
| 232 |
.. _#48: https://github.com/jazzband/django-sortedm2m/pull/48 |
| 233 |
|
| 234 |
0.9.4 |
| 235 |
----- |
| 236 |
|
| 237 |
* Fix: ``SortedMultipleChoiceField`` did not properly report changes of the |
| 238 |
data to ``Form.changed_data``. Thanks to @smcoll for the patch. |
| 239 |
|
| 240 |
0.9.3 |
| 241 |
----- |
| 242 |
|
| 243 |
* Fix: ``AlterSortedManyToManyField`` operation failed for postgres databases. |
| 244 |
* Testing against MySQL databases. |
| 245 |
|
| 246 |
0.9.2 |
| 247 |
----- |
| 248 |
|
| 249 |
* Fix: ``AlterSortedManyToManyField`` operation failed for many to many fields |
| 250 |
which already contained some data. |
| 251 |
|
| 252 |
0.9.1 |
| 253 |
----- |
| 254 |
|
| 255 |
* Fix: When using the sortable admin widget, deselecting an item in the list |
| 256 |
had not effect. Thank you to madEng84 for the report and patch! |
| 257 |
|
| 258 |
0.9.0 |
| 259 |
----- |
| 260 |
|
| 261 |
* Adding ``AlterSortedManyToManyField`` migration operation that allows you to |
| 262 |
migrate from ``ManyToManyField`` to ``SortedManyToManyField`` and vice |
| 263 |
versa. Thanks to Joaquín Pérez for the patch! |
| 264 |
* Fix: Supporting migrations in Django 1.7.4. |
| 265 |
* Fix: The admin widget is not broken anymore for dynamically added inline |
| 266 |
forms. Thanks to Rubén Díaz for the patch! |
| 267 |
|
| 268 |
0.8.1 |
| 269 |
----- |
| 270 |
|
| 271 |
* Adding support for Django 1.7 migrations. Thanks to Patryk Hes and Richard |
| 272 |
Barran for their reports. |
| 273 |
* Adding czech translations. Thanks to @cuchac for the pull request. |
| 274 |
|
| 275 |
0.8.0 |
| 276 |
----- |
| 277 |
|
| 278 |
* Adding support for Django 1.7 and dropping support for Django 1.4. |
| 279 |
|
| 280 |
0.7.0 |
| 281 |
----- |
| 282 |
|
| 283 |
* Adding support for ``prefetch_related()``. Thanks to Marcin Ossowski for |
| 284 |
the idea and patch. |
| 285 |
|
| 286 |
0.6.1 |
| 287 |
----- |
| 288 |
|
| 289 |
* Correct escaping of *for* attribute in label for the sortedm2m widget. Thanks |
| 290 |
to Mystic-Mirage for the report and fix. |
| 291 |
|
| 292 |
0.6.0 |
| 293 |
----- |
| 294 |
|
| 295 |
* Python 3 support! |
| 296 |
* Better widget. Thanks to Mike Knoop for the initial patch. |
| 297 |
|
| 298 |
0.5.0 |
| 299 |
----- |
| 300 |
|
| 301 |
* Django 1.5 support. Thanks to Antti Kaihola for the patches. |
| 302 |
* Dropping Django 1.3 support. Please use django-sortedm2m<0.5 if you need to |
| 303 |
use Django 1.3. |
| 304 |
* Adding support for a ``sort_value_field_name`` argument in |
| 305 |
``SortedManyToManyField``. Thanks to Trey Hunner for the idea. |
| 306 |
|
| 307 |
0.4.0 |
| 308 |
----- |
| 309 |
|
| 310 |
* Django 1.4 support. Thanks to Flavio Curella for the patch. |
| 311 |
* south support is only enabled if south is actually in your INSTALLED_APPS |
| 312 |
setting. Thanks to tcmb for the report and Florian Ilgenfritz for the patch. |
| 313 |
|
| 314 |
0.3.3 |
| 315 |
----- |
| 316 |
|
| 317 |
* South support (via monkeypatching, but anyway... it's there!). Thanks to |
| 318 |
Chris Church for the patch. South migrations won't pick up a changed |
| 319 |
``sorted`` argument though. |
| 320 |
|
| 321 |
0.3.2 |
| 322 |
----- |
| 323 |
|
| 324 |
* Use already included jQuery version in global scope and don't override with |
| 325 |
django's version. Thank you to Hendrik van der Linde for reporting this |
| 326 |
issue. |
| 327 |
|
| 328 |
0.3.1 |
| 329 |
----- |
| 330 |
|
| 331 |
* Fixed packaging error. |
| 332 |
|
| 333 |
0.3.0 |
| 334 |
----- |
| 335 |
|
| 336 |
* Heavy internal refactorings. These were necessary to solve a problem with |
| 337 |
``SortedManyToManyField`` and a reference to ``'self'``. |
| 338 |
|
| 339 |
0.2.5 |
| 340 |
----- |
| 341 |
|
| 342 |
* Forgot to exclude debug print/console.log statements from code. Sorry. |
| 343 |
|
| 344 |
0.2.4 |
| 345 |
----- |
| 346 |
|
| 347 |
* Fixing problems with ``SortedCheckboxSelectMultiple`` widget, especially in |
| 348 |
admin where a "create and add another item" popup is available. |
| 349 |
|
| 350 |
0.2.3 |
| 351 |
----- |
| 352 |
|
| 353 |
* Fixing issue with primary keys instead of model instances for ``.add()`` and |
| 354 |
``.remove()`` methods in ``SortedRelatedManager``. |
| 355 |
|
| 356 |
0.2.2 |
| 357 |
----- |
| 358 |
|
| 359 |
* Fixing validation error for ``SortedCheckboxSelectMultiple``. It caused |
| 360 |
errors if only one value was passed. |
| 361 |
|
| 362 |
0.2.1 |
| 363 |
----- |
| 364 |
|
| 365 |
* Removed unnecessary reference of jquery ui css file in |
| 366 |
``SortedCheckboxSelectMultiple``. Thanks to Klaas van Schelven and Yuwei Yu |
| 367 |
for the hint. |
| 368 |
|
| 369 |
0.2.0 |
| 370 |
----- |
| 371 |
|
| 372 |
* Added a widget for use in admin. |