mirror of
https://github.com/pretix/pretix-servicefees.git
synced 2024-11-23 22:50:21 +01:00
Stop using deprecated Django APIs
This commit is contained in:
parent
35fc869d85
commit
c6084954a9
4 changed files with 26 additions and 24 deletions
|
@ -1,21 +1 @@
|
||||||
from django.apps import AppConfig
|
__version__ = '1.10.0'
|
||||||
from django.utils.translation import gettext_lazy
|
|
||||||
|
|
||||||
|
|
||||||
class PluginApp(AppConfig):
|
|
||||||
name = 'pretix_servicefees'
|
|
||||||
verbose_name = 'Service Fees'
|
|
||||||
|
|
||||||
class PretixPluginMeta:
|
|
||||||
name = gettext_lazy('Service Fees')
|
|
||||||
author = 'Raphael Michel'
|
|
||||||
category = 'FEATURE'
|
|
||||||
description = gettext_lazy('This plugin allows to charge a service fee on all non-free orders.')
|
|
||||||
visible = True
|
|
||||||
version = '1.10.0'
|
|
||||||
|
|
||||||
def ready(self):
|
|
||||||
from . import signals # NOQA
|
|
||||||
|
|
||||||
|
|
||||||
default_app_config = 'pretix_servicefees.PluginApp'
|
|
||||||
|
|
21
pretix_servicefees/apps.py
Normal file
21
pretix_servicefees/apps.py
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
from django.utils.translation import gettext_lazy
|
||||||
|
from . import __version__
|
||||||
|
|
||||||
|
|
||||||
|
class PluginApp(AppConfig):
|
||||||
|
name = 'pretix_servicefees'
|
||||||
|
verbose_name = 'Service Fees'
|
||||||
|
|
||||||
|
class PretixPluginMeta:
|
||||||
|
name = gettext_lazy('Service Fees')
|
||||||
|
author = 'Raphael Michel'
|
||||||
|
category = 'FEATURE'
|
||||||
|
description = gettext_lazy('This plugin allows to charge a service fee on all non-free orders.')
|
||||||
|
visible = True
|
||||||
|
version = __version__
|
||||||
|
|
||||||
|
def ready(self):
|
||||||
|
from . import signals # NOQA
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from .views import SettingsView
|
from .views import SettingsView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/settings/servicefees/$',
|
path('control/event/<str:organizer>/<str:event>/settings/servicefees/',
|
||||||
SettingsView.as_view(), name='settings'),
|
SettingsView.as_view(), name='settings'),
|
||||||
]
|
]
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -3,6 +3,7 @@ from distutils.command.build import build
|
||||||
|
|
||||||
from django.core import management
|
from django.core import management
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
from pretix_servicefees import __version__
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -25,7 +26,7 @@ cmdclass = {
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pretix-servicefees',
|
name='pretix-servicefees',
|
||||||
version='1.10.0',
|
version=__version__,
|
||||||
description='Allows you to impose a service fee on all non-free orders.',
|
description='Allows you to impose a service fee on all non-free orders.',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/pretix/pretix-servicefees',
|
url='https://github.com/pretix/pretix-servicefees',
|
||||||
|
|
Loading…
Reference in a new issue