Projet

Général

Profil

0006-fixup-django4-replaced-urls.url-with-url.re_path-equ.patch

A. Berriot, 01 septembre 2022 12:22

Télécharger (1,26 ko)

Voir les différences:

Subject: [PATCH 6/6] fixup! django4: replaced urls.url with url.re_path
 equivalent (#68607)

 src/authentic2/saml/admin.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/authentic2/saml/admin.py
18 18

  
19 19
from django import forms
20 20
from django.conf import settings
21
from django.conf.urls import url
22 21
from django.contrib import admin, messages
23 22
from django.core.exceptions import ValidationError
24 23
from django.forms import ModelForm
24
from django.urls import path
25 25
from django.utils.translation import gettext as _
26 26

  
27 27
try:
......
171 171
    def get_urls(self):
172 172
        urls = super().get_urls()
173 173
        urls = [
174
            url(
175
                r'^add-from-url/$',
174
            path(
175
                'add-from-url/',
176 176
                self.admin_site.admin_view(
177 177
                    admin_views.AddLibertyProviderFromUrlView.as_view(model_admin=self)
178 178
                ),
179
-