Stop using deprecated Django APIs

This commit is contained in:
Raphael Michel 2022-12-17 18:18:51 +01:00
parent 35fc869d85
commit c6084954a9
4 changed files with 26 additions and 24 deletions

View file

@ -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'

View 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

View file

@ -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'),
] ]

View file

@ -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',