Changes between Initial Version and Version 2 of Ticket #29916


Ignore:
Timestamp:
Nov 2, 2018, 2:05:13 PM (6 years ago)
Author:
Peter J. Farrell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29916

    • Property Owner set to Peter J. Farrell
  • Ticket #29916 – Description

    initial v2  
    11Add support for following functions for Postgres range fields that are currently not supported in Django:
    22
    3 isempty
    4 lower_inc
    5 upper_inc
    6 lower_inf
    7 upper_inf
     3* isempty
     4* lower_inc
     5* upper_inc
     6* lower_inf
     7* upper_inf
     8
     9Example usage:
     10
     11{{{#!python
     12MyObject.objects.filter(date_range__upper_inf=True)  # for infinity
     13MyObject.objects.filter(date_range__upper_inf=False)  # for not infinity
     14}}}
    815
    916Example code: [https://gist.github.com/peterfarrell/5c7b8d80319563813caba6320b568829]
Back to Top