wagtail / wagtail-generic-chooser

A toolkit for custom chooser popups in Wagtail
BSD 3-Clause "New" or "Revised" License
116 stars 25 forks source link

Replace deprecated url import #42

Closed tbrlpld closed 2 years ago

tbrlpld commented 3 years ago

The django.conf.urls.url() alias of django.urls.re_path() is deprecated as of Django 3.1 and will be removed in 4.0 (which is currently in alpha).

This commit changes the import to use the orignal alias for versions before 3.1 and uses django.urls.re_path directly for newer versions.

See also: https://docs.djangoproject.com/en/3.2/releases/3.1/#id2

Closes #41

tbrlpld commented 2 years ago

@zerolab I do not have write access in the project. It would be highly appreciated if you could do me the honour and press the button 😅🙏

zerolab commented 2 years ago

Unofortunately, I do not have such access, so will leave it to the powers that be to receive all the honours 😂

update I've got the power! 🎶

gasman commented 2 years ago

Now released in 0.3.1!

tbrlpld commented 2 years ago

Perfect 🎉 Thanks a lot @gasman