Jaymon / prom

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

query.ref fails when the pk is passed in #51

Closed Jaymon closed 7 years ago

Jaymon commented 7 years ago
self.query.ref("foo.bar.Che", self.pk)

This will return all of foo.bar.Che in the db, not just the foo.bar.Che with the value of self.pk, at the very least if a value is passed in it should be an exception if the discover code can't match them up because the last thing we want is all the rows to be returned