Home
About
Blog
Courses
Contact
More about Django
· Module 2 - Models and the ORM in depth
2.3 QuerySets you actually need
26 min
Back to the curriculum
Video coming soon
The recording for this lesson has not been published yet.
What we cover
filter, exclude and chaining
Q objects for OR and negation
F expressions for field-to-field comparisons
annotate and aggregate for counts and averages
Laziness: when a QuerySet hits the database
Written notes for this lesson are being prepared. The outline above already shows what the recording will cover.
← 2.2 Migrations for real
2.4 Custom managers and querysets →
After this lesson you will
Express complex conditions in a single query
Compute values in the database, not in Python
Module 2
2.1
Relations between models
2.2
Migrations for real
2.3
QuerySets you actually need
2.4
Custom managers and querysets
2.5
Killing N+1 queries
2.6
Slugs, timestamps and abstract base models