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
Support Inheritance #395
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request
Context
My previous models all have fields such as
_date_created
which I would like to support by having a base document model such as:However when trying to apply something with the engine, I get the error:
Solution
Implement a base model class and allow inheritance
Alternative solutions
This could be solved using composition, such as:
However for this use case, I think I would prefer inheritance to ensure that all new models have this data.
The text was updated successfully, but these errors were encountered: