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

Support model inheritance #346

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

gsakkis
Copy link

@gsakkis gsakkis commented Mar 28, 2023

Add support for model inheritance:

  • The parent model(s) may extend either odmantic.Model or odmantic.EmbeddedModel.
  • Class attributes added by odmantic (__odm_fields__, __references__, __bson_serialized_fields__, __mutable_fields__) are copied from the parent model(s) to the child model.
  • The child Config inherits the parent Config(s) (if any).

Note: This PR is based on top of #344, here's the actual diff. I will rebase it once the latter is merged.

@SYNchroACK
Copy link

@art049

@nikhildigde
Copy link

@art049 Any plans of merging this PR please?

@art049 art049 force-pushed the master branch 2 times, most recently from 5bd1656 to a99a258 Compare November 3, 2023 20:39
@SDAravind
Copy link

SDAravind commented Mar 28, 2024

@art049 - when would this get merged?

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

Successfully merging this pull request may close these issues.

None yet

5 participants