no text for some autocompletes

remotes/origin/yandex
Bachurin Sergey 11 years ago
parent dc6204c034
commit 09fa5bef8c
  1. 12
      project/docs/autocomplete_light_registry.py

@ -22,7 +22,13 @@ class AutocompleteClient(autocomplete_light.AutocompleteModelBase):
return self.order_choices(choices)[0:self.limit_choices] return self.order_choices(choices)[0:self.limit_choices]
autocomplete_light.register(Country, name='ACCountry') class AutocompleteWithEmptyWidget(autocomplete_light.AutocompleteModelBase):
autocomplete_light.register(Currency, name='ACCurrency') '''Автокомплит единиц измерения
autocomplete_light.register(Measure, name='ACMeasure') '''
autocomplete_js_attributes = {'placeholder': u''}
autocomplete_light.register(Country, AutocompleteWithEmptyWidget, name='ACCountry')
autocomplete_light.register(Currency, AutocompleteWithEmptyWidget, name='ACCurrency')
autocomplete_light.register(Measure, AutocompleteWithEmptyWidget, name='ACMeasure')
autocomplete_light.register(Client, AutocompleteClient, name='ACClient') autocomplete_light.register(Client, AutocompleteClient, name='ACClient')

Loading…
Cancel
Save