postgres.fields.DateRangeField

class DateRangeField(**options) [source]

Stores a range of dates. Based on a DateField. Represented by a daterange in the database and a DateRange 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:17
Comments
Leave a Comment

Please login to continue.