#22394: Several built in Lookups should actually be Transforms
----------------------------------------------+---------------------
     Reporter:  smeatonj                      |      Owner:  nobody
         Type:  Uncategorized                 |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:  lookups
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+---------------------
 The following built in lookups should be Transforms rather than Lookups,
 because we're transforming the date/time into a date/time part:

 `Year, Month, Day, WeekDay, Hour, Minute, Second.`

 Converting the above into Transforms then allows a Lookup to proceed:

 `qs.filter(date_field__year__gte=2001)`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22394>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.b1f085f73f9423d58ada448645e238f7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to