Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More
lino.utils.fieldutils¶
Functions
|
Print an overview description of the specified fields of the specified model. |
|
Return a list of field in the given database model, action or table. |
- lino.utils.fieldutils.get_fields(model, fieldnames=None, columns=None)¶
Return a list of field in the given database model, action or table.
- lino.utils.fieldutils.fields_help(model, fieldnames=None, columns=False, all=None)¶
Print an overview description of the specified fields of the specified model.
If model is an action or table, print the parameter fields of that action or table.
If model is a table and you want the columns instead of the parameter fields, then specify columns=True.
By default this shows only fields that have a help text. If you specify all=True, then also fields that have no help text will be shown.