[Fixed]-Django keyword can't be an expression

30👍

Use __ to follow foreign key relationships in a queryset:

L = WorkoutRecord.objects.filter(status=1, challenge__user=request.user, workout_email_sent__lt=today)

Leave a comment