QuerySetsLesson 35Free preview
QuerySet Introduction
This lesson is part of Django · All levels
Summary
QuerySet is a collection of object models from a database that can be filtered and sorted before evaluation. It's lazy, which means that the query is actually run again when the result is needed. QuerySet supports chaining to build phased queries.
Key points
- QuerySet is a collection of query model results
- Lazy, evaluated when needed
- Can be chained like this (.order_by)
- All objects pass through
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.