Replies: 1 comment
-
how about using dataclass ? exlude_me: str = field(repr=False) # omits this field |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sample code:
Is there a way I can achieve this?
I also don't strictly need to use inheritance - perhaps there is a way where I could create a model using a list of fields from the parent and exclude just one field?
Beta Was this translation helpful? Give feedback.
All reactions