Puts the receivers in a seperate file and adds appconfig
This commit is contained in:
committed by
Michael van Tellingen
parent
9a7d41284e
commit
55da67523f
13
src/wagtail_personalisation/config.py
Normal file
13
src/wagtail_personalisation/config.py
Normal file
@ -0,0 +1,13 @@
|
||||
from django.apps import AppConfig
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
class WagtailPersonalisationConfig(AppConfig):
|
||||
label = 'wagtail_personalisation'
|
||||
name = 'wagtail_personalisation'
|
||||
verbose_name = _('Wagtail Personalisation')
|
||||
|
||||
def ready(self):
|
||||
from wagtail_personalisation import receivers
|
||||
|
||||
receivers.register()
|
Reference in New Issue
Block a user