bmuller / twistar

Twistar is an object-relational mapper (ORM) for Python that uses the Twisted library to provide asynchronous DB interaction.
http://findingscience.com/twistar
Other
132 stars 38 forks source link

cannot use optional args in HABTM get() method #1

Closed steeeveb closed 13 years ago

steeeveb commented 13 years ago

Hi, using Twistar I found that it's not possible to use optional arguments with get method in HABTM relationship. You can see this running the test I've done. With a little change in the method I can now use get() like I use the find method. I haven't checked yet if this behaviour is also present in other relationships.

Thanks for Twistar bye

steeeveb commented 13 years ago

I've checked and get() method in hasmany relationships does its work properly

bmuller commented 13 years ago

Hi steeeveb - Thanks for the patches. I'll try to pull these sometime this week.