Files
django-maraudes/notes/apps.py
artus40 f8e618e08a changes display of notes in tables (headers on the side)
corrects code for 'notes' modules according to PEP8 guidelines
2017-12-27 12:42:40 +01:00

11 lines
262 B
Python

from django.apps import AppConfig
from watson import search as watson
class NotesConfig(AppConfig):
name = 'notes'
def ready(self):
sujet_model = self.get_model("Sujet")
watson.register(sujet_model, fields=('nom', 'prenom', 'surnom'))