Jaymon / prom

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

addon.Query should use pk_name to set __id #83

Closed Jaymon closed 1 year ago

Jaymon commented 4 years ago

addon.Orm should have a special query that also supports pk_name so if you had Foo then you could do Foo.query.is_foo_id as an alias for is_pk and is__id

Jaymon commented 1 year ago

Field.names handles this