Skip to content

Commit

Permalink
Merge pull request #35 from SharmaineLim/replace-deprecated-imports
Browse files Browse the repository at this point in the history
Replace deprecated function django.conf.urls.url
  • Loading branch information
emilytoppm authored May 27, 2022
2 parents 8b80294 + 95922e0 commit 99c88d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from django.conf.urls import include, url
from django.urls import include, path

from wagtail.admin import urls as wagtailadmin_urls
from wagtail.core import urls as wagtail_urls


urlpatterns = [
url(r'^admin/', include(wagtailadmin_urls)),
url(r'', include(wagtail_urls)),
path("admin/", include(wagtailadmin_urls)),
path("", include(wagtail_urls)),
]
7 changes: 3 additions & 4 deletions wagtail_airtable/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.conf import settings
from django.conf.urls import url
from django.urls import reverse
from django.urls import path, reverse
from wagtail.core import hooks
from wagtail.admin.menu import MenuItem

Expand All @@ -12,8 +11,8 @@
@hooks.register("register_admin_urls")
def register_airtable_url():
return [
url(
r"^airtable-import/$",
path(
"airtable-import/",
AirtableImportListing.as_view(),
name="airtable_import_listing",
),
Expand Down

0 comments on commit 99c88d7

Please sign in to comment.