|
|
|
@ -36,11 +36,6 @@ class AutocompleteCurrency(autocomplete_light.AutocompleteModelBase): |
|
|
|
|
|
|
|
|
|
|
|
search_fields = ('name', '^abc_code') |
|
|
|
search_fields = ('name', '^abc_code') |
|
|
|
|
|
|
|
|
|
|
|
# def choices_for_request(self): |
|
|
|
|
|
|
|
# if not self.request.GET.get('q', '').strip(): |
|
|
|
|
|
|
|
# return self.choices.none() |
|
|
|
|
|
|
|
# return super(AutocompleteCurrency, self).choices_for_request() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autocomplete_light.register(Country, AutocompleteWithEmptyWidget, name='ACCountry') |
|
|
|
autocomplete_light.register(Country, AutocompleteWithEmptyWidget, name='ACCountry') |
|
|
|
autocomplete_light.register(Currency, AutocompleteCurrency, name='ACCurrency') |
|
|
|
autocomplete_light.register(Currency, AutocompleteCurrency, name='ACCurrency') |
|
|
|
|