Skip to content

Commit 6460ab4

Browse files
committed
Fix imports
1 parent 97a7703 commit 6460ab4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

s3_file_uploads/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from django.conf.urls import url
1+
from django.urls import re_path
22
from s3_file_uploads import views
33

44

55
app_name = 's3_file_uploads'
66

77

88
urlpatterns = [
9-
url(r'^$', view=views.UploadedFileCreateView.as_view(), name='upload-file-create'),
10-
url(r'^(?P<file_id>[0-9a-f-]+)/$', view=views.UploadedFileFetchView.as_view(), name='upload-file-fetch'),
11-
url(r'^(?P<file_id>[0-9a-f-]+)/complete/$', view=views.UploadedFileUploadCompleteView.as_view(), name='upload-file-complete'),
9+
re_path(r'^$', view=views.UploadedFileCreateView.as_view(), name='upload-file-create'),
10+
re_path(r'^(?P<file_id>[0-9a-f-]+)/$', view=views.UploadedFileFetchView.as_view(), name='upload-file-fetch'),
11+
re_path(r'^(?P<file_id>[0-9a-f-]+)/complete/$', view=views.UploadedFileUploadCompleteView.as_view(), name='upload-file-complete'),
1212
]

tests/urls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from django.conf.urls import include, url
1+
from django.conf.urls import include
2+
from django.urls import re_path
23

34

45
urlpatterns = [
5-
url(r'^s3-file-uploads/', view=include('s3_file_uploads.urls')),
6+
re_path(r'^s3-file-uploads/', view=include('s3_file_uploads.urls')),
67
]

0 commit comments

Comments
 (0)