diff --git a/content/developer/howtos/backend.rst b/content/developer/howtos/backend.rst index a579c8494..3fd6088a0 100644 --- a/content/developer/howtos/backend.rst +++ b/content/developer/howtos/backend.rst @@ -463,7 +463,7 @@ Relational field types are: :class:`Many2one(other_model, ondelete='set null') ` A simple link to an other object:: - print foo.other_id.name + print(foo.other_id.name) .. seealso:: `foreign keys `_ @@ -473,7 +473,7 @@ Relational field types are: accessing it results in a (possibly empty) set of records:: for other in foo.other_ids: - print other.name + print(other.name) .. danger:: @@ -487,7 +487,7 @@ Relational field types are: records, accessing it also results in a possibly empty set of records:: for other in foo.other_ids: - print other.name + print(other.name) .. exercise:: Many2one relations