Django Output Prediction Easy +10 XP
ORM Query
What does this Django ORM call return?
DjangoRead-only
Post.objects.filter(published=True)
What is the output?
Show answer and explanation
Answer: QuerySet of published posts
filter() returns a QuerySet — a lazy collection of matching objects. It doesn't hit the database until evaluated.
Hint: filter() returns a collection, not a single object.
What this challenge tests
Output Prediction in Django: orm, queryset.