You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given those, I have user_a as an instance of User. I want to fetch all users in database that are not in a battle with given user_a.
I tried to execute the following query:
It's possible that I am not doing the query correctly, so I'd like some feedback to know if it's that the case or there is something that is not working properly in the library.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I am not sure if I am doing things right, that's why I wanted to ask before opening this as an issue.
I have defined two models:
Battle
andUser
:Given those, I have
user_a
as an instance of User. I want to fetch all users in database that are not in a battle with givenuser_a
.I tried to execute the following query:
But I am getting all the time
KeyError: player1
.It's possible that I am not doing the query correctly, so I'd like some feedback to know if it's that the case or there is something that is not working properly in the library.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions