From 580abfb0ce7d6abc2cb58fc77a728fe8f6a66b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schl=C3=B6gl?= Date: Sun, 27 Aug 2017 12:22:21 +0200 Subject: [PATCH] error in autocompletes definitions --- entities/autocomplete_light_registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entities/autocomplete_light_registry.py b/entities/autocomplete_light_registry.py index e0e1492..817bf14 100644 --- a/entities/autocomplete_light_registry.py +++ b/entities/autocomplete_light_registry.py @@ -1,7 +1,7 @@ from autocomplete_light import shortcuts as al from vocabularies.models import ProfessionType, Title -from entities.models import Person, Place, Institution, Event +from entities.models import Person, Place, Institution, Event, Work class TitleAutocomplete(al.AutocompleteModelBase): search_fields=['name', 'abbreviation'] @@ -70,7 +70,7 @@ class DB_EventAutocomplete(al.AutocompleteModelBase): class DB_WorkAutocomplete(al.AutocompleteModelBase): search_fields = ['name', ] - model = Event + model = Work attrs = { 'data-autocomplete-minimum-characters': 2, 'placeholder': 'Start typing to get suggestions',