Skip to content

Commit

Permalink
fix tests for django1 by making a path() equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
muncus committed Jun 6, 2023
1 parent 794811b commit 67cdd0d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
from django.urls import path
else:
from django.conf.urls import url as re_path
def path(p, *args, **kwargs):
return re_path(r"^%s$" % p, *args, **kwargs)

urlpatterns = [
re_path(r"^traced/", traced),
Expand Down

0 comments on commit 67cdd0d

Please sign in to comment.