Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field_maybe_none blocks getattr from dealing with the None #119

Open
tyhayeswbs opened this issue Jun 2, 2023 · 1 comment
Open

field_maybe_none blocks getattr from dealing with the None #119

tyhayeswbs opened this issue Jun 2, 2023 · 1 comment

Comments

@tyhayeswbs
Copy link

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?

@oTree-org
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants