Widgets

Reference

Contains all the Django widgets for select2-chained.

class django_select2_chained.widgets.PrepopulatedSelect2Widget(**kwargs)[source]

A prepopulated django_select2.widgets.AutoHeavySelect2Widget.

It allows sending empty search queries to the server.

class django_select2_chained.widgets.ChainedAutoSelect2Widget(*args, **kwargs)[source]

A PrepopulatedSelect2Widget to be used with chained fields.

init_options()[source]

Initialize widget options.

render(name, value, attrs=None, choices=())[source]

Render the widget.