#7672: Add filter for 'Day of week' on Date / DateTime fields
---------------------------------------------+------------------------------
Reporter: rossp | Owner: nobody
Status: new | Milestone: post-1.0
Component: Database wrapper | Version: SVN
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
---------------------------------------------+------------------------------
Changes (by rossp):
* needs_docs: 1 => 0
* needs_tests: 1 => 0
Comment:
Added attachment dayofweek_filter-!r7866.v2.diff :
* Renamed {{{dow}}} to {{{week_day}}} (I'd been using {{{dow}}} as that's
what Postgres uses, and was my initial use case.
* Postgres backend needed to be modified to translate {{{week_day}}} into
{{{dow}}} for the query.
* SQLite backend still unmodified, got to get my head around how the
existing date filtering works there.
* Oracle not yet tested
* Tests & Docs added
Post 1.0 sounds fine to me, thanks for the suggestions. I knew I'd miss a
bunch of stuff with my first patch.
--
Ticket URL: <http://code.djangoproject.com/ticket/7672#comment:2>
Django Code <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
-~----------~----~----~----~------~----~------~--~---