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

Class MPTTFilteredSelectMultiple

source code


MPTT version of FilteredSelectMultiple

Nested Classes [hide private]
  Media
MPTTFilteredSelectMultiple's Media

Inherited from django.forms.widgets.Widget: __metaclass__

Instance Methods [hide private]
 
__init__(self, verbose_name, is_stacked, attrs=None, choices=())
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
render_options(self, choices, selected_choices)
This is copy'n'pasted from django.forms.widgets Select(Widget) change to the for loop and render_option so they will unpack and use our extra tuple of mptt sort fields (if you pass in some default choices for this field, make sure they have the extra tuple too!)
source code

Inherited from django.contrib.admin.widgets.FilteredSelectMultiple: render

Inherited from django.forms.widgets.SelectMultiple: value_from_datadict

Inherited from django.forms.widgets.Select: render_option

Inherited from django.forms.widgets.Widget: __deepcopy__, build_attrs

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

Class Methods [hide private]

Inherited from django.forms.widgets.Widget: id_for_label

Class Variables [hide private]

Inherited from django.forms.widgets.Widget: is_hidden, is_localized, needs_multipart_form

Properties [hide private]
  media

Inherited from object: __class__

Method Details [hide private]

__init__(self, verbose_name, is_stacked, attrs=None, choices=())
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

render_options(self, choices, selected_choices)

source code 

This is copy'n'pasted from django.forms.widgets Select(Widget) change to the for loop and render_option so they will unpack and use our extra tuple of mptt sort fields (if you pass in some default choices for this field, make sure they have the extra tuple too!)

Overrides: django.forms.widgets.Select.render_options

Property Details [hide private]

media

Get Method:
unreachable._media(self)