lino.utils.mldbc.mixins¶
Defines the model mixin BabelNamed
.
(This module's source code is available here.)
Classes
|
Mixin for models that have a babel field "Designation" (i.e. |
|
Mixin for models that have a babel field name (labelled "Designation" by default) for each language. |
-
class
lino.utils.mldbc.mixins.
BabelNamed
(*args, **kwargs)¶ Bases:
lino.core.model.Model
Mixin for models that have a babel field name (labelled "Designation" by default) for each language.
This mixin is deprecated (but without any planned expiry date so far). For new applications we recommend to use
BabelDesignated
instead.
-
class
lino.utils.mldbc.mixins.
BabelDesignated
(*args, **kwargs)¶ Bases:
lino.core.model.Model
Mixin for models that have a babel field "Designation" (i.e. one designation for each language defined in the site's
languages
.This is the same as
BabelNamed
but the internal field name matches the label.