Django Using contains


Example

This query selects all books with any rating less than three.

bad_books = Books.objects.filter(ratings_range__contains=(1, 3))