Debugging dynamic querysets in Django
Class-based views in Django are super handy. Among other things, you can create a view listing all instances of a model with about two lines of code.
One of the features of this ListView is the ability to customize the queryset used to populate the view. Suppose you wanted a …