From 3d9cfe3235c6041ddc6c16d5f803ab4e8f82c39c Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 11 Jul 2024 10:24:51 +0100 Subject: [PATCH] Revert to using urls.re_path for regex url --- omero_figure/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/omero_figure/urls.py b/omero_figure/urls.py index 9446119d9..0403347aa 100644 --- a/omero_figure/urls.py +++ b/omero_figure/urls.py @@ -18,7 +18,7 @@ from omeroweb.webgateway import views as webgateway_views from . import views -from django.urls import path +from django.urls import path, re_path urlpatterns = [ @@ -33,10 +33,10 @@ path('imgData//', views.img_data_json, name='figure_imgData'), - path(r'^max_projection_range_exceeded/' - r'(?P[0-9]+)/(?:(?P[0-9]+)/)?(?:(?P[0-9]+)/)?$', - views.max_projection_range_exceeded, - name='max_projection_range_exceeded'), + re_path(r'^max_projection_range_exceeded/' + r'(?P[0-9]+)/(?:(?P[0-9]+)/)?(?:(?P[0-9]+)/)?$', + views.max_projection_range_exceeded, + name='max_projection_range_exceeded'), # Send json to OMERO to create pdf using scripting service path('make_web_figure/', views.make_web_figure,