7

Puts the receivers in a seperate file and adds appconfig

This commit is contained in:
Jasper Berghoef
2017-05-24 19:04:07 +02:00
committed by Michael van Tellingen
parent 9a7d41284e
commit 55da67523f
4 changed files with 38 additions and 21 deletions

View 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()