[Django]-Django: Model.objects.filter(a=X, b=Y) not returning desired objects

3👍

✅

Try querying for puzzle, instead of id, as ID will refer to the submission ID, instead of the puzzle id.

Submission.objects.filter(user = request.user, puzzle=puzzleID)

Leave a comment