diff --git a/byro_shackspace/__init__.py b/byro_shackspace/__init__.py index 480dada..79df85f 100644 --- a/byro_shackspace/__init__.py +++ b/byro_shackspace/__init__.py @@ -9,6 +9,7 @@ class PluginConfig(AppConfig): def ready(self): from . import utils # noqa + from . import signals # noqa default_app_config = 'byro_shackspace.PluginConfig' diff --git a/byro_shackspace/signals.py b/byro_shackspace/signals.py new file mode 100644 index 0000000..0e1187e --- /dev/null +++ b/byro_shackspace/signals.py @@ -0,0 +1,9 @@ +from django.dispatch import receiver + +from byro.members.signals import new_member + + +@receiver(new_member) +def add_member_to_mailman(sender, signal, **kwargs): + member = sender + # TODO: magic happens here