Skip to content

Commit

Permalink
error in autocompletes definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Aug 27, 2017
1 parent d6ffadd commit 580abfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entities/autocomplete_light_registry.py
Original file line number Diff line number Diff line change
@@ -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']
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 580abfb

Please sign in to comment.