#10911: Date comparison lookup operators
------------------------------------------+---------------------------------
 Reporter:  vbmendes                      |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.0       
 Keywords:  lookup, orm, date             |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 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:

 * day_lt -- day lower then;
 * day_gt -- day greather then;
 * day_lte -- day lower then or equal;
 * day_gte -- day greather then or equal;
 * day_range -- accepts a tuple or list with two elements, just like the
 range loopup operator;

 And the same thing for month, year and week_day.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10911>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to