Skip to content

Commit

Permalink
[deps] Add Support to django 3.2 and 4.0a1 openwisp#122
Browse files Browse the repository at this point in the history
Updated admin.py

Fixes openwisp#122
  • Loading branch information
yashikajotwani12 committed Oct 26, 2021
1 parent 0648a92 commit 756399b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_x509/base/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django import forms
from django.conf.urls import url
from django.conf.urls import path
from django.contrib.admin import ModelAdmin
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render
Expand Down Expand Up @@ -129,7 +129,7 @@ class Media:

def get_urls(self):
return [
url(r'^x509/ca/(?P<pk>[^/]+).crl$', self.crl_view, name='crl')
path('x509/ca/(?P<pk>[^/]+).crl', self.crl_view, name='crl')
] + super().get_urls()

def crl_view(self, request, pk):
Expand Down

0 comments on commit 756399b

Please sign in to comment.