-
Hi, Another question for pydantic Config. Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
collerek
Jun 10, 2021
Replies: 1 comment 1 reply
-
As of now Config is generated for you (and will be overwritten even if you provide yours).
Config internally is stored in a model class under class Mol(ormar.Model):
... # class declaration
Mol.__config__.allow_mutation = False |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
collerek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of now Config is generated for you (and will be overwritten even if you provide yours).
Used config is:
Config internally is stored in a model class under
__config__
key so you can alter the settings this way: