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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -