Skip to content
Snippets Groups Projects
Unverified Commit f94f570b authored by Jairo Llopis's avatar Jairo Llopis Committed by Martin Trigaux
Browse files

[FIX] doc: declaration of computed fields

Cannot link a method before declaring it.

Closes #12057
parent 149b8fe2
Branches
Tags
No related merge requests found
......@@ -309,9 +309,9 @@ Default values are defined as parameters on fields, either a value::
or a function called to compute the default value, which should return that
value::
a_field = fields.Char(default=compute_default_value)
def compute_default_value(self):
return self.get_value()
a_field = fields.Char(default=compute_default_value)
Computed fields
---------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment