Admin-specific form widgets.
A form widget to allow people to select one or more User relations.
It’s not unheard of to have a server with thousands or tens of thousands of registered users. In this case, the existing Django admin widgets fall down hard. The filtered select widgets can actually crash the webserver due to trying to pre-populate an enormous
<select>element, and the raw ID widget is basically a write-only field.
This field does much better, offering both the ability to see who’s already in the list, as well as interactive search and filtering.
Initalize the RelatedUserWidget.
- local_site_name (unicode, optional) – The name of the LocalSite where the widget is being rendered.
- multivalued (bool, optional) – Whether or not the widget should allow selecting multiple values.
render(name, value, attrs=None)¶
Render the widget.
The rendered HTML.