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

add Field db=False flag #14

Open
Jaymon opened this issue Nov 24, 2015 · 2 comments
Open

add Field db=False flag #14

Jaymon opened this issue Nov 24, 2015 · 2 comments
Labels

Comments

@Jaymon
Copy link
Owner

Jaymon commented Nov 24, 2015

this will cause a a field that is passed into __init__() or modify() to be set into the class instance, but not persisted to the db. That way it can go through all the normal Field validation stuff like the normalize method if needs be, but it ultimately won't be a field in the db.

@Jaymon Jaymon added the wontfix label Mar 22, 2023
@Jaymon
Copy link
Owner Author

Jaymon commented Mar 22, 2023

I'm not sure this is the solution I would want to implement for this problem. It would involve a lot of refactoring since everything expects Field instances to be db fields and I'm not sure it's worth the hassle for something I don't that often and when I do do it I can usually solve it a different way

@Jaymon Jaymon closed this as completed Mar 22, 2023
@Jaymon
Copy link
Owner Author

Jaymon commented Oct 16, 2024

I had this open in a note:

prom.config.Property - a field that doesn't get saved into the db

This would give a property full access to all the lifecycle methods so you could say pass in a value and then have that value set a different value that will get saved into the db, things like that.

@Jaymon Jaymon reopened this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant