Django Output Prediction Easy +10 XP
ORM Filter
What does this queryset return?
DjangoRead-only
User.objects.filter(is_active=True)
What is the output?
Show answer and explanation
Answer: All active users
filter() returns a QuerySet of all matching records. It's lazy — the DB query runs only when the QuerySet is evaluated.
Hint: filter() returns multiple records, not just one.
What this challenge tests
Output Prediction in Django: orm, queryset.