class documentation

class ManyToManyRawIdWidget(ForeignKeyRawIdWidget):

View In Hierarchy

A Widget for displaying ManyToMany ids in the "raw_id" interface rather than in a <select multiple> box.
Method format​_value Return a value as it should appear when rendered in a template.
Method get​_context Undocumented
Method label​_and​_url​_for​_value Undocumented
Method url​_parameters Undocumented
Method value​_from​_datadict Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided.
Class Variable template​_name Undocumented

Inherited from ForeignKeyRawIdWidget:

Method __init__ Undocumented
Method base​_url​_parameters Undocumented
Instance Variable admin​_site Undocumented
Instance Variable db Undocumented
Instance Variable rel Undocumented

Inherited from TextInput (via ForeignKeyRawIdWidget):

Class Variable input​_type Undocumented

Inherited from Widget (via ForeignKeyRawIdWidget, TextInput, Input):

Method __deepcopy__ Undocumented
Method ​_render Undocumented
Method build​_attrs Build an attribute dictionary.
Method id​_for​_label Return the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Return None if no ID is available.
Method render Render the widget as an HTML string.
Method subwidgets Undocumented
Method use​_required​_attribute Undocumented
Method value​_omitted​_from​_data Undocumented
Class Variable is​_localized Undocumented
Class Variable is​_required Undocumented
Class Variable needs​_multipart​_form Undocumented
Class Variable supports​_microseconds Undocumented
Instance Variable attrs Undocumented
Property is​_hidden Undocumented
def format_value(self, value):
Return a value as it should appear when rendered in a template.
def get_context(self, name, value, attrs):
def label_and_url_for_value(self, value):
def url_parameters(self):
def value_from_datadict(self, data, files, name):
Given a dictionary of data and this widget's name, return the value of this widget or None if it's not provided.
template_name: str =