Skip to content

Use this package with orator ORM #230

Closed
@handhikadj

Description

@handhikadj

I want to use this package but I don't know how to collaborate this package with orator-orm . on the Orator's model, I must extend the Model class on a class

e.g

User Class

from orator import Model

class User(Model):
    pass

with this package:

import dependency_injector.containers as containers

class User(containers.DeclarativeContainer):
    pass

Can I just:

import dependency_injector.containers as containers
from orator import Model

class User(containers.DeclarativeContainer, Model):
    pass

???

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions