0Pricing
Django Academy · Lesson

Overriding get_queryset and Templates

Customize data and template names per view.

Make Generic Views Yours

Generic views give sensible defaults, but real apps need tweaks. You override a few hooks to customize them. 🔧

What get_queryset Does

get_queryset decides which rows a view works with, so overriding it lets you filter or sort the results.

All lessons in this course

  1. ListView and DetailView
  2. CreateView and UpdateView
  3. DeleteView and success_url
  4. Overriding get_queryset and Templates
← Back to Django Academy