bundesdata_web_app/app/speakers/apps.py
2019-02-28 14:09:53 +01:00

11 lines
250 B
Python
Executable File

from django.apps import AppConfig
from watson import search as watson
class SpeakersConfig(AppConfig):
name = 'speakers'
def ready(self):
Speaker = self.get_model("Speaker")
watson.register(Speaker, exclude=["short_vita"])