manytoonechoicesdelegate

class camelot.view.controls.delegates.manytoonechoicesdelegate.ManyToOneChoicesDelegate(parent=None, editable=True, **kwargs)[source]

Display a ManyToOne field as a ComboBox, filling the list of choices with the objects of the target class.

../../../../_images/enumeration.png

The items in the ComboBox are the unicode representation of the related objects. So these classes need an implementation of their __unicode__ method to show up in a human readable way in the ComboBox.

Previous topic

many2onedelegate

Next topic

monthsdelegate

This Page