Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support on django 3 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
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='[email protected]',
license='MIT',
zip_safe = False,
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(),
Expand Down
2 changes: 1 addition & 1 deletion wagtailconstance/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.2'
__version__ = '0.0.3'
2 changes: 1 addition & 1 deletion wagtailconstance/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions wagtailconstance/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -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'),
]


Expand Down