Skip to content

Make Ormar compatible with Pydantic .construct() method or implement Ormar equivalent #318

@franzwollang

Description

@franzwollang

Discussed in #317

Originally posted by franzwollang August 22, 2021
In Pydantic, one can use the .construct() method to instantiate a model while skipping validation. I tried it out with an Ormar model and it seemed to work, except there were some random exceptions when I tried to .save() it that gave me the impression that perhaps doing this broke some of Ormar's internals.

Does Ormar work with the .construct() method? Or is there an Ormar equivalent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions