Package zinnia :: Package admin :: Module widgets :: Class TreeNodeChoiceField
[hide private]

Class TreeNodeChoiceField

source code


Duplicating the TreeNodeChoiceField bundled in django-mptt to avoid conflict with the TreeNodeChoiceField bundled in django-cms...

Nested Classes [hide private]

Inherited from django.forms.fields.ChoiceField: widget

Inherited from django.forms.fields.Field: hidden_widget

Instance Methods [hide private]
 
__init__(self, level_indicator=u'---', *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
label_from_instance(self, obj)
Creates labels which represent the tree level of each node when generating option labels.
source code

Inherited from django.forms.models.ModelChoiceField: __deepcopy__, 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]

__init__(self, level_indicator=u'---', *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

label_from_instance(self, obj)

source code 

Creates labels which represent the tree level of each node when generating option labels.

Overrides: django.forms.models.ModelChoiceField.label_from_instance