Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
Multi-table inheritance¶
Django’s Multi-table inheritance (MTI) is a great feature to map Polymorphism. into a relational database.
Lino provides an intuitive user interface for managing MTI by adding some features:
an MTI navigator
lino.mixins.polymorphic
Form Layouts can inherit from their MTI parent model’s layout.
a special CheckBox widget (
EnableChild
) that allows to convert existing data records into a more specialized child model, or back into a less specialized parent model.
See also:
https://gitlab.com/lino-framework/lino/blob/master/docs/tickets/22 gives an introduction to MTI
lino.test_apps.mti
.