djmvc_dal

class djmvc_dal.views.AutocompleteView(**kwargs)[source]

Bases: ModelMixin, ViewMixin, AlightQuerySetView

DAL Alight autocomplete endpoint for a model controller’s rows.

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get_search_fields()[source]

Get the fields to search over.

djmvc_dal.lookup.find_autocomplete_url(model)[source]

Return urlfullname for model’s autocomplete route, or None.

djmvc_dal.hooks.patch_relation_formfields()[source]

Call djhacker.formfield on every concrete relation field.