Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

add Orm.ref that works like Query.ref #108

Closed Jaymon closed 3 years ago

Jaymon commented 4 years ago

I just had to do something like this in an Orm method:

Foo = self.query.ref("some.modulepath.Foo").orm_class

And it would be great if I could do this instead:

Foo = self.ref("some.modulepath.Foo")