mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Restructure our python module. A lot.
This commit is contained in:
17
src/pretix/plugins/testdummy/__init__.py
Normal file
17
src/pretix/plugins/testdummy/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django.apps import AppConfig
|
||||
from pretix.base.plugins import PluginType
|
||||
|
||||
|
||||
class TestDummyApp(AppConfig):
|
||||
name = 'pretix.plugins.testdummy'
|
||||
verbose_name = '.testdummy'
|
||||
|
||||
class PretixPluginMeta:
|
||||
type = PluginType.RESTRICTION
|
||||
name = '.testdummy'
|
||||
version = '1.0.0'
|
||||
|
||||
def ready(self):
|
||||
from . import signals # NOQA
|
||||
|
||||
default_app_config = 'pretix.plugins.testdummy.TestDummyApp'
|
||||
0
src/pretix/plugins/testdummy/models.py
Normal file
0
src/pretix/plugins/testdummy/models.py
Normal file
9
src/pretix/plugins/testdummy/signals.py
Normal file
9
src/pretix/plugins/testdummy/signals.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.dispatch import receiver
|
||||
|
||||
from pretix.base.signals import determine_availability
|
||||
|
||||
|
||||
@receiver(determine_availability)
|
||||
def availability_handler(sender, **kwargs):
|
||||
kwargs['sender'] = sender
|
||||
return kwargs
|
||||
Reference in New Issue
Block a user