Skip to content

Commit

Permalink
Revert to using urls.re_path for regex url
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jul 11, 2024
1 parent b000e02 commit ddd1095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omero_figure/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -33,7 +33,7 @@
path('imgData/<int:image_id>/', views.img_data_json,
name='figure_imgData'),

path(r'^max_projection_range_exceeded/'
re_path(r'^max_projection_range_exceeded/'
r'(?P<iid>[0-9]+)/(?:(?P<z>[0-9]+)/)?(?:(?P<t>[0-9]+)/)?$',
views.max_projection_range_exceeded,
name='max_projection_range_exceeded'),
Expand Down

0 comments on commit ddd1095

Please sign in to comment.