Class AutocompleteJsonView
Handle AutocompleteWidget's AJAX requests for data.
Declaration
source linkDocumentation
Methods
▶ def get(self, request, *args, **kwargs) override Return a JsonResponse with search results of the form:
▶ def get_paginator(self, *args, **kwargs) override Use the ModelAdmin's paginator.
▶ def get_queryset(self) override Return queryset based on ModelAdmin.get_search_results().
▷ def has_perm(self, request, obj=None) Check if user has permission to access the related model.