Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino.utils.mldbc.fields¶
Defines the babel field classes (BabelCharField and
BabelTextField) and the LanguageField class.
See Introduction to multilingual database content
Functions
|
Used by both |
Classes
|
Define a variable number of CharField database fields, one for each language of your |
|
Used for the clones of the master field, one for each non-default language. |
|
A field that lets the user select a language from the available |
- lino.utils.mldbc.fields.contribute_to_class(field, cls, fieldclass, **kw)¶
Used by both
BabelCharFieldandBabelTextField
- class lino.utils.mldbc.fields.BabelCharField(*args, db_collation=None, **kwargs)¶
Bases:
CharFieldDefine a variable number of CharField database fields, one for each language of your
lino.core.site.Site.languages. See Multilingual database content.
- class lino.utils.mldbc.fields.BabelTextField(*args, **kw)¶
Bases:
RichTextFieldUsed for the clones of the master field, one for each non-default language. See Multilingual database content.
- class lino.utils.mldbc.fields.LanguageField(*args, **kw)¶
Bases:
CharFieldA field that lets the user select a language from the available
lino.core.site.Site.languages.See also
lino.core.model.Model.get_print_language().