add auto-complete for time-frame
This commit is contained in:
parent
4ad1869eab
commit
c0dd1a7d36
2 changed files with 3 additions and 1 deletions
|
@ -61,6 +61,7 @@ class featuresForm(forms.ModelForm):
|
||||||
required=True,
|
required=True,
|
||||||
widget=forms.TextInput(attrs={'size': '40'}))
|
widget=forms.TextInput(attrs={'size': '40'}))
|
||||||
authority_record = AutoCompleteSelectField('authority_record', required=False)
|
authority_record = AutoCompleteSelectField('authority_record', required=False)
|
||||||
|
time_frame = AutoCompleteSelectField('time_frame', required=False)
|
||||||
|
|
||||||
# exclude = ('info',)
|
# exclude = ('info',)
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@ MIDDLEWARE_CLASSES = (
|
||||||
AJAX_LOOKUP_CHANNELS = {
|
AJAX_LOOKUP_CHANNELS = {
|
||||||
# the simplest case, pass a DICT with the model and field to search against :
|
# the simplest case, pass a DICT with the model and field to search against :
|
||||||
'authority_record' : dict(model='places.authorityrecord', search_field='preferred_name'),
|
'authority_record' : dict(model='places.authorityrecord', search_field='preferred_name'),
|
||||||
|
'time_frame': dict(model='places.timeframe', search_field='description'),
|
||||||
# this generates a simple channel
|
# this generates a simple channel
|
||||||
# specifying the model Track in the music app, and searching against the 'title' field
|
# specifying the model Track in the music app, and searching against the 'title' field
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue