class documentation
class AutocompleteMixin: (source)
Known subclasses: django.contrib.admin.widgets.AutocompleteSelect
, django.contrib.admin.widgets.AutocompleteSelectMultiple
Select widget mixin that loads options from AutocompleteJsonView via AJAX. Renders the necessary data attributes for select2 and adds the static form media.
Method | __init__ |
Undocumented |
Method | build |
Set select2's AJAX attributes. |
Method | get |
Undocumented |
Method | optgroups |
Return selected options based on the ModelChoiceIterator. |
Class Variable | url |
Undocumented |
Instance Variable | admin |
Undocumented |
Instance Variable | attrs |
Undocumented |
Instance Variable | choices |
Undocumented |
Instance Variable | db |
Undocumented |
Instance Variable | field |
Undocumented |
Instance Variable | i18n |
Undocumented |
Property | media |
Undocumented |