diff --git a/content/developer/howtos/backend.rst b/content/developer/howtos/backend.rst index c009b6bad..6072242b3 100644 --- a/content/developer/howtos/backend.rst +++ b/content/developer/howtos/backend.rst @@ -467,7 +467,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 `_ @@ -477,7 +477,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:: @@ -491,7 +491,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