Django Using contained_by


Example

This query gets all books with ratings greater than or equal to zero and less than six.

all_books = Book.objects.filter(ratings_range_contained_by=(0, 6))