Skip to content

Commit

Permalink
cd_manager: Fix DeprecationWarnings in Django 3.2
Browse files Browse the repository at this point in the history
Change all occurences of django.urls.url to django.urls.re_path.
  • Loading branch information
bionade24 committed Aug 23, 2024
1 parent 50bf1dd commit b58441f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cd_manager/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.contrib import admin
from django.utils.html import format_html
from django.urls import reverse
from django.conf.urls import url
from django.urls import re_path
from django.http.response import HttpResponseRedirect
from multiprocessing import Process
from cd_manager.models import Package, GpgKey
Expand All @@ -23,12 +23,12 @@ class PackageAdmin(admin.ModelAdmin):
def get_urls(self):
urls = super().get_urls()
custom_urls = [
url(
re_path(
r'^(?P<package_name>.+)/build/$',
self.admin_site.admin_view(self.build),
name='build',
),
url(
re_path(
r'^(?P<package_name>.+)/rebuildtree/$',
self.admin_site.admin_view(self.rebuildtree),
name='rebuildtree',
Expand Down

0 comments on commit b58441f

Please sign in to comment.