Skip to content

Commit 40a19ec

Browse files
committed
Remove deprecated django.conf.urls.url()
1 parent 0be5685 commit 40a19ec

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

jasmin_services/widgets.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import json
66

7+
import django.urls
78
from django import forms
8-
from django.conf.urls import url
99
from django.contrib import admin
1010
from django.contrib.contenttypes.models import ContentType
1111
from django.core.exceptions import ObjectDoesNotExist
@@ -44,7 +44,7 @@ def generic_object_text(request):
4444
admin_site_get_urls = admin.sites.AdminSite.get_urls
4545
admin.sites.AdminSite.get_urls = lambda model_admin, *args, **kwargs: [
4646
*admin_site_get_urls(model_admin, *args, **kwargs),
47-
url(
47+
django.urls.re_path(
4848
r"^generic_object_text/$",
4949
model_admin.admin_view(generic_object_text),
5050
name="generic_object_text",

poetry.lock

+21-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ python = "^3.9"
1010

1111
# Dependencies of dependencies. Need to specify here so poetry knows where to get them from.
1212
jasmin-ldap = {git = "https://github.com/cedadev/jasmin-ldap.git", tag = "v1.0.0"}
13-
jasmin-django-utils = {git = "https://github.com/cedadev/jasmin-django-utils.git", tag = "v1.0.6" }# Also required for API.
13+
jasmin-django-utils = {git = "https://github.com/cedadev/jasmin-django-utils.git", tag = "v1.0.7" }# Also required for API.
1414

1515
Django = "~3.2"
1616
django-bootstrap5 = "^23.1"
@@ -20,7 +20,7 @@ django-polymorphic = "^3.1.0"
2020
requests = "^2.27.1"
2121
jasmin-ldap-django = {git = "https://github.com/cedadev/jasmin-ldap-django.git", tag = "v1.0.1"}
2222
jasmin-metadata = {git = "https://github.com/cedadev/jasmin-metadata.git", tag = "v1.0.0"}
23-
jasmin-notifications = {git = "https://github.com/cedadev/jasmin-notifications.git", tag = "v1.2.2"}
23+
jasmin-notifications = {git = "https://github.com/cedadev/jasmin-notifications.git", tag = "v1.2.4"}
2424
django-countries = "^7.2.1, !=7.3.0"
2525
djangorestframework = {version = "^3.13.1", optional = true}
2626
django-filter = {version = "^23.2", optional = true}

0 commit comments

Comments
 (0)