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)
Source:stackexchange.com