many2onedelegate¶
- class camelot.view.controls.delegates.many2onedelegate.Many2OneDelegate(parent=None, admin=None, editable=True, **kwargs)[source]¶
Custom delegate for many 2 one relations
Once an item has been selected, it is represented by its unicode representation in the editor or the table. So the related classes need an implementation of their __unicode__ method.
Field attributes supported by the delegate :
By default, creates a Many2OneEditor as its editor.
Field Attributes Editor editable=False tooltip=’tooltip’ editable=True editable=True tooltip=’tooltip’ editable=False editable=False background_color=ColorScheme.green editable=True background_color=ColorScheme.green Static attributes supported by this editor :
- admin
- editable
- field_name
- actions
Dynamic field attributes supported by the editor :
- editor¶
alias of Many2OneEditor