Add support for RangeBoundary (#252)

This commit is contained in:
Hannes Ljungberg
2019-12-10 20:09:55 +01:00
committed by Maksim Kurnikov
parent f5f33b061d
commit 3b69ec6a72
2 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ from .ranges import (
DateRangeField as DateRangeField,
DateTimeRangeField as DateTimeRangeField,
RangeOperators as RangeOperators,
RangeBoundary as RangeBoundary,
)
from .hstore import HStoreField as HStoreField
from .citext import (

View File

@@ -41,3 +41,8 @@ class RangeOperators:
NOT_LT: str
NOT_GT: str
ADJACENT_TO: str
class RangeBoundary(models.Expression):
lower: str
upper: str
def __init__(self, inclusive_lower: bool = ..., inclusive_upper: bool = ...): ...