4👍
Use upper and lower to get range from object of NumericRange
.
In [5]: from psycopg2.extras import NumericRange
In [6]: a = NumericRange(2, 8, '[)')
In [7]: a.lower
Out[7]: 2
In [8]: a.upper
Out[8]: 8
- [Django]-Django-Userena: adding extra non-null fields to a user's profile
- [Django]-Django Celery – How to start a task with a delay of n – seconds – countdown flag is ignored
Source:stackexchange.com