oTree icon indicating copy to clipboard operation
oTree copied to clipboard

field_maybe_none blocks getattr from dealing with the None

Open tyhayeswbs opened this issue 2 years ago • 1 comments

can we have an optional second parameter for field_maybe_none to provide a default value if it is none, analogous to how getattr() works please?

tyhayeswbs avatar Jun 02 '23 13:06 tyhayeswbs

Hi, thanks for logging this, can you show some code demonstrating how you are using field_maybe_none? I want to understand the use case better.

oTree-org avatar Jun 21 '23 19:06 oTree-org