djcrud_dal

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

Bases: ModelMixin, ViewMixin, AlightQuerySetView

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

Row scope comes from the detail-route view permission registry, not the list queryset.

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

get_search_fields()[source]

Get the fields to search over.

get_queryset()[source]

Scoped queryset for list and action views.

djcrud_dal.lookup.find_autocomplete_url(model)[source]

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

djcrud_dal.hooks.patch_relation_formfields()[source]

Call djhacker.formfield on every concrete relation field.