Skip to content

Commit

Permalink
Remove deprecated django.conf.urls.url()
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed May 4, 2023
1 parent 0be5685 commit 40a19ec
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions jasmin_services/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import json

import django.urls
from django import forms
from django.conf.urls import url
from django.contrib import admin
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
Expand Down Expand Up @@ -44,7 +44,7 @@ def generic_object_text(request):
admin_site_get_urls = admin.sites.AdminSite.get_urls
admin.sites.AdminSite.get_urls = lambda model_admin, *args, **kwargs: [
*admin_site_get_urls(model_admin, *args, **kwargs),
url(
django.urls.re_path(
r"^generic_object_text/$",
model_admin.admin_view(generic_object_text),
name="generic_object_text",
Expand Down
41 changes: 21 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python = "^3.9"

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

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

0 comments on commit 40a19ec

Please sign in to comment.