django - SQLAlchemy EXISTS queryset -
I only use the Django Framework with my ORM
And there is some code:
User.objects.filter (user name = 'test'). Is present () This is true or false.
This orm query generated SQL:
"auth_user" WHERE "auth_user" as "SELECT (1)" "User Name" = E'test 'LIMIT 1
Please help.
Thank you!
I try to understand this page. / P>
(ret,), = session.key (exists). Where (user.username == 'test'))
Comments
Post a Comment