Changes between Initial Version and Version 2 of Ticket #29916
- Timestamp:
- Nov 2, 2018, 2:05:13 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29916
- Property Owner set to
-
Ticket #29916 – Description
initial v2 1 1 Add support for following functions for Postgres range fields that are currently not supported in Django: 2 2 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 9 Example usage: 10 11 {{{#!python 12 MyObject.objects.filter(date_range__upper_inf=True) # for infinity 13 MyObject.objects.filter(date_range__upper_inf=False) # for not infinity 14 }}} 8 15 9 16 Example code: [https://gist.github.com/peterfarrell/5c7b8d80319563813caba6320b568829]