Django RangeFields - a group of PostgreSQL specific fields Using None to signify no upper bound

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

This query selects all books with any rating greater than or equal to four.

maybe_good_books = Books.objects.filter(ratings_range__contains=(4, None))


Got any Django Question?