Comment 2 for bug 2060276

Revision history for this message
Marco van Zwetselaar (zwets) wrote :

There is an even less invasive fix, namely to use 'import as' and import re_path as url:

--- /usr/share/mailman3-web/urls.py.orig 2024-04-05 07:56:38.119113883 +0000
+++ /usr/share/mailman3-web/urls.py 2024-04-05 08:09:09.912489281 +0000
@@ -17,7 +17,8 @@
 # Postorius. If not, see <http://www.gnu.org/licenses/>.

-from django.conf.urls import include, url
+from django.conf.urls import include
+from django.urls import re_path as url
 from django.contrib import admin
 from django.urls import reverse_lazy
 from django.views.generic import RedirectView