Skip to content

Support model inheritance#346

Open
gsakkis wants to merge 5 commits into
art049:masterfrom
gsakkis:model-inheritance
Open

Support model inheritance#346
gsakkis wants to merge 5 commits into
art049:masterfrom
gsakkis:model-inheritance

Conversation

@gsakkis

@gsakkis gsakkis commented Mar 28, 2023

Copy link
Copy Markdown

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
Copy Markdown

@art049

@nikhildigde

Copy link
Copy Markdown

@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

SDAravind commented Mar 28, 2024

Copy link
Copy Markdown

@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.

5 participants