Changes between Initial Version and Version 1 of Ticket #10911


Ignore:
Timestamp:
Apr 23, 2009, 4:00:34 PM (16 years ago)
Author:
Alex Gaynor
Comment:

Please use preview.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10911 – Description

    initial v1  
    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:
     1It 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:
    22
    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;
    88
    99And the same thing for month, year and week_day.
Back to Top