autocomplete.views module

class autocomplete.views.AffiliationAutocomplete(**kwargs)[source]

Bases: django.views.generic.base.View, dal.views.ViewMixin, dal_select2.views.Select2ViewMixin

Fetch the affiliations from HAL API - FIXME: handle pagination if there is. - FIXME: what happens when no results? - FIXME: handle error for requests

create_field = False
fetch_affiliations(q)[source]
get(request, *args, **kwargs)[source]
get_result_result(result)[source]
get_result_selection(result)[source]
get_result_value(result)[source]
get_results(context)[source]
has_more(context)[source]