diff --git a/setup.py b/setup.py index eb1d075..db9348a 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ version=__version__, description="django-constance integration for Wagtail CMS", long_description=open('README.rst').read(), - url='http://github.com/MechanisM/wagtail-constance', + url='http://github.com/Alex-Saduk/wagtail-constance', author='Eugene MechanisM', author_email='eugene@mechanism.pro', license='MIT', @@ -25,7 +25,7 @@ classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 4.0', ], keywords='django, config, constance', packages=find_packages(), diff --git a/wagtailconstance/__init__.py b/wagtailconstance/__init__.py index 210ebb3..8dbfdad 100644 --- a/wagtailconstance/__init__.py +++ b/wagtailconstance/__init__.py @@ -1 +1 @@ -__version__ = '0.0.2' \ No newline at end of file +__version__ = '0.0.3' \ No newline at end of file diff --git a/wagtailconstance/views.py b/wagtailconstance/views.py index 672894d..da5736c 100644 --- a/wagtailconstance/views.py +++ b/wagtailconstance/views.py @@ -2,7 +2,7 @@ from django.urls import reverse_lazy from django.utils.formats import localize from django.views.generic.edit import FormView -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from wagtail.admin import messages from constance import settings, LazyConfig diff --git a/wagtailconstance/wagtail_hooks.py b/wagtailconstance/wagtail_hooks.py index daec646..6dfb10a 100644 --- a/wagtailconstance/wagtail_hooks.py +++ b/wagtailconstance/wagtail_hooks.py @@ -1,15 +1,15 @@ -from django.conf.urls import url from django.urls import reverse -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from wagtail.core import hooks from wagtail.admin.menu import MenuItem from .views import ConstanceConfigView +from django.urls import include, re_path @hooks.register('register_admin_urls') def register_admin_urls(): return [ - url(r'^config/', ConstanceConfigView.as_view(), name='constance_config'), + re_path(r'^config/', ConstanceConfigView.as_view(), name='constance_config'), ]