views:

16

answers:

1

I have a very simple table(mapped as AuthToken class), consisting of a string ('token'), and a userid (foreign key to another table), with 'user' as relation ( = class User)

session.query(AuthToken.user).one() gives back the token, and the userid (as a tuple), but not the user object.

Does anybody know why?

thanks!