reviewboard.admin.form_widgets¶
Admin-specific form widgets.
-
class
RelatedUserWidget
(local_site_name=None, multivalued=True)[source]¶ Bases:
django.forms.widgets.HiddenInput
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.
-
__init__
(local_site_name=None, multivalued=True)[source]¶ Initalize the RelatedUserWidget.
Parameters: - 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.
-