Package openflow :: Package plugin :: Module forms :: Class AsLeafClassModelChoiceField
[hide private]
[frames] | no frames]

Class AsLeafClassModelChoiceField

source code


Nested Classes [hide private]

Inherited from django.forms.fields.ChoiceField: widget

Inherited from django.forms.fields.Field: hidden_widget

Instance Methods [hide private]
 
label_from_instance(self, obj)
This method is used to convert objects into strings; it's used to generate the labels for the choices presented by this object.
source code

Inherited from django.forms.models.ModelChoiceField: __deepcopy__, __init__, prepare_value, to_python, validate

Inherited from django.forms.models.ModelChoiceField (private): _get_choices, _get_queryset, _set_queryset

Inherited from django.forms.fields.ChoiceField: valid_value

Inherited from django.forms.fields.ChoiceField (private): _set_choices

Inherited from django.forms.fields.Field: clean, run_validators, widget_attrs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from django.forms.models.ModelChoiceField: default_error_messages

Inherited from django.forms.fields.Field: creation_counter, default_validators

Properties [hide private]

Inherited from django.forms.models.ModelChoiceField: choices, queryset

Inherited from object: __class__

Method Details [hide private]

label_from_instance(self, obj)

source code 

This method is used to convert objects into strings; it's used to generate the labels for the choices presented by this object. Subclasses can override this method to customize the display of the choices.

Overrides: django.forms.models.ModelChoiceField.label_from_instance
(inherited documentation)