'Odmantic models Inheritence from pydantic models

Hello dear community,

I am working with engine for mongodb operations and i have an odmantic model that inherit from a pydantic model.

OdmanticModel(Model, PydanticModel):
      attributes

It seems that odmantic model does not considerate pydantic model attribute, and these are not saved eventually in mongodb. Is there any solution or a workarround to make the inheritance fully worked implicitly or explicitly



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source