Include getter function when depending on Function field
Since c47b3642f1a6 the getter is called (if it is on_change_with
) when accessing the Function
field from an instance without a value.
This have the side effect that if a method is depending on the Function
field and any value is set for it, the getter is called. But as it does not necessary have its own depends set, it may compute a wrong value and even change the instance by setting some depends to None
. This setting may be sent back to the client and erase the value.
To prevent this side-effect we should always include in the depends of a method, the depends of the getter function for all Function
fields in the first depends
.