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 :
Dynamic field attributes supported by the editor :
alias of Many2OneEditor