1 | | It would be nice to have lookup operators such as day_gt, day_gte, day_lt, day_lte, month_gt, month_gte, month_lt and month_lte. With this, we will be able to do comparisons such as date__month_gt=6 to find objects with the date object in the second semester, and much more good things. The lookups are: |
| 1 | It would be nice to have lookup operators such as {{{ day_gt }}}, {{{ day_gte }}}, {{{ day_lt }}}, {{{ day_lte }}}, {{{ month_gt }}}, {{{ month_gte }}}, {{{ month_lt }}} and {{{ month_lte }}}. With this, we will be able to do comparisons such as {{{ date__month_gt=6 }}} to find objects with the date object in the second semester, and much more good things. The lookups are: |
3 | | * day_lt -- day lower then; |
4 | | * day_gt -- day greather then; |
5 | | * day_lte -- day lower then or equal; |
6 | | * day_gte -- day greather then or equal; |
7 | | * day_range -- accepts a tuple or list with two elements, just like the range loopup operator; |
| 3 | * {{{ day_lt }}} -- day lower then; |
| 4 | * {{{ day_gt }}} -- day greather then; |
| 5 | * {{{ day_lte }}} -- day lower then or equal; |
| 6 | * {{{ day_gte }}} -- day greather then or equal; |
| 7 | * {{{ day_range }}} -- accepts a tuple or list with two elements, just like the range loopup operator; |