In progress
This commit is contained in:
@ -38,4 +38,4 @@ class AskModel(Model):
|
||||
|
||||
# return if the asker ask the asked to play a game
|
||||
def is_asked(self, asker_id, asked_id):
|
||||
return AskModel.objects.get(asker_id=asker_id, asked_id=asked_id) is not None
|
||||
return AskModel.objects.filter(asker_id=asker_id, asked_id=asked_id).first() is not None
|
||||
|
Reference in New Issue
Block a user