Django models incredible tools
Q objects, F objects, annotate, and aggregate — the four tools that let you stop dropping to raw SQL, and the one distinction everyone gets wrong.
Badges come from GitHub once the author claims this feed.
Q objects, F objects, annotate, and aggregate — the four tools that let you stop dropping to raw SQL, and the one distinction everyone gets wrong.
Where that mysterious _set comes from, what related_name actually does, and how to query backwards across a ForeignKey.
Custom managers and querysets — how to name your query logic once, reuse it everywhere, and chain it like Django’s built-in methods.