changes display of notes in tables (headers on the side)

corrects code for 'notes' modules according to PEP8 guidelines
This commit is contained in:
artus40
2017-12-27 12:42:40 +01:00
parent 8092859cb4
commit f8e618e08a
10 changed files with 171 additions and 132 deletions

View File

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