postgres.fields.IntegerRangeField

class IntegerRangeField(**options) [source]

Stores a range of integers. Based on an IntegerField. Represented by an int4range in the database and a NumericRange in Python.

Regardless of the bounds specified when saving the data, PostgreSQL always returns a range in a canonical form that includes the lower bound and excludes the upper bound; that is [).

doc_Django
2016-10-09 18:39:18
Comments
Leave a Comment

Please login to continue.