Skip to content

Commit

Permalink
uwsgify. Fix Django deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Apr 11, 2021
1 parent 4e471d0 commit 205289b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ uwsgiconf changelog
===================


Unreleased
----------
* uwsgify. Fix Django deprecation warning.


v0.22.0 [2021-01-15]
--------------------
+ Logging. Added 'fd' and 'stdio' loggers support.
Expand Down
4 changes: 2 additions & 2 deletions uwsgiconf/contrib/django/uwsgify/admin/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import url
from django.conf.urls import re_path
from django.contrib import admin
from django.template.response import TemplateResponse

Expand All @@ -9,7 +9,7 @@ def get_urls(self):
info = self.model._meta.app_label, self.model._meta.model_name

urlpatterns = [
url('^$', self.admin_site.admin_view(self.view_onepage), name='%s_%s_changelist' % info)
re_path('^$', self.admin_site.admin_view(self.view_onepage), name=f'%s_%s_changelist' % info)
]

return urlpatterns
Expand Down

0 comments on commit 205289b

Please sign in to comment.