From 141b87895901bea3700fa6dd46b657800764e83f Mon Sep 17 00:00:00 2001 From: saschahofmann Date: Thu, 10 Feb 2022 16:26:26 +0100 Subject: [PATCH] remove re_path --- invitations/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invitations/urls.py b/invitations/urls.py index fb1c17a..75ffa56 100644 --- a/invitations/urls.py +++ b/invitations/urls.py @@ -1,15 +1,15 @@ -from django.conf.urls import url +from django.urls import re_path from . import views app_name = 'invitations' urlpatterns = [ - url(r'^send-invite/$', views.SendInvite.as_view(), + re_path(r'^send-invite/$', views.SendInvite.as_view(), name='send-invite'), - url(r'^send-json-invite/$', views.SendJSONInvite.as_view(), + re_path(r'^send-json-invite/$', views.SendJSONInvite.as_view(), name='send-json-invite'), - url(r'^accept-invite/(?P\w+)/?$', views.AcceptInvite.as_view(), + re_path(r'^accept-invite/(?P\w+)/?$', views.AcceptInvite.as_view(), name='accept-invite'), ]