move to apps.py

main
n0emis 1 year ago
parent f4c0bb3f47
commit 527457d0c8

@ -1,28 +1 @@
from django.utils.translation import gettext_lazy
try:
from pretix.base.plugins import PluginConfig
except ImportError:
raise RuntimeError("Please use pretix 2.7 or above to run this plugin!")
__version__ = "1.0.0"
class PluginApp(PluginConfig):
name = "pretix_poos"
verbose_name = "Pretix POOS"
class PretixPluginMeta:
name = gettext_lazy("Pretix POOS")
author = "n0emis"
description = gettext_lazy("Short description")
visible = True
version = __version__
category = "CUSTOMIZATION"
compatibility = "pretix>=2.7.0"
def ready(self):
from . import signals # NOQA
default_app_config = "pretix_poos.PluginApp"

@ -0,0 +1,20 @@
from django.apps import AppConfig
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy
from . import __version__
class PoosApp(AppConfig):
name = 'pretix_poos'
verbose_name = 'Pretix POOS'
class PretixPluginMeta:
name = gettext_lazy('Pretix POOS')
author = 'Ember Keske'
description = gettext_lazy('Import Bank transactions automatically via nordigen')
category = 'CUSTOMIZATION'
visible = False
version = __version__
compatibility = "pretix>=4.17.0"
def ready(self):
from . import signals # NOQA
Loading…
Cancel
Save