diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index dc34f60..e468005 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -8,3 +8,4 @@ - [@sobolevn](https://github.com/sobolevn) - [@tony](https://github.com/tony) - [@tripliks](https://github.com/tripliks) +- [@Ivan-Feofanov](https://github.com/Ivan-Feofanov) diff --git a/README.md b/README.md index 7e142a3..c097d1a 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Since `unpublish` depends on `article.status` we must use `get_inline_actions` t ```python from django.contrib import admin, messages -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class ArticleInline(InlineActionsMixin, diff --git a/inline_actions/actions.py b/inline_actions/actions.py index 5424171..e48d3b8 100644 --- a/inline_actions/actions.py +++ b/inline_actions/actions.py @@ -3,7 +3,7 @@ from django.contrib import messages from django.shortcuts import redirect from django.urls import reverse -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class ViewAction: diff --git a/inline_actions/admin.py b/inline_actions/admin.py index 6597e7a..4d0f6e8 100755 --- a/inline_actions/admin.py +++ b/inline_actions/admin.py @@ -7,7 +7,7 @@ from django.urls import reverse from django.utils.safestring import mark_safe from django.utils.text import capfirst -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class InlineActionException(Exception): diff --git a/test_proj/blog/admin.py b/test_proj/blog/admin.py index de84f59..36480ca 100755 --- a/test_proj/blog/admin.py +++ b/test_proj/blog/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin, messages from django.shortcuts import render -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from inline_actions.actions import DefaultActionsMixin, ViewAction from inline_actions.admin import InlineActionsMixin, InlineActionsModelAdminMixin diff --git a/test_proj/blog/models.py b/test_proj/blog/models.py index 6b49df9..2514e9d 100644 --- a/test_proj/blog/models.py +++ b/test_proj/blog/models.py @@ -1,5 +1,5 @@ from django.db import models -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ class Author(models.Model): diff --git a/test_proj/urls.py b/test_proj/urls.py index ede2ec9..dfc7362 100644 --- a/test_proj/urls.py +++ b/test_proj/urls.py @@ -1,6 +1,6 @@ -from django.conf.urls import url from django.contrib import admin +from django.urls import path urlpatterns = [ - url(r'^admin/', admin.site.urls), + path('admin/', admin.site.urls), ]