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
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'
__version__ = '1.10.0'

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

View File

@ -3,6 +3,7 @@ from distutils.command.build import build
from django.core import management
from setuptools import setup, find_packages
from pretix_servicefees import __version__
try:
@ -25,7 +26,7 @@ cmdclass = {
setup(
name='pretix-servicefees',
version='1.10.0',
version=__version__,
description='Allows you to impose a service fee on all non-free orders.',
long_description=long_description,
url='https://github.com/pretix/pretix-servicefees',