Re: fiter for week

2007-02-12 Thread Rob Slotboom
For those interested: ### INIT ### import datetime, time from django.http import Http404 def trans_month(month): """Vertaald de locale maandweergave naar globale""" if month == "maa": month = "mar" elif month == "mei": month = "may" elif month == "okt": month = "oct" return mont

Re: fiter for week

2007-01-30 Thread Adrian Holovaty
On 1/30/07, Rob Slotboom <[EMAIL PROTECTED]> wrote: > Before re-inventing, I want to ask if there is some build-in for > getting objects for [a || this] week. > > Something like: > > objects.filter(pubdate__week=now.week) Hi Rob, That database lookup type doesn't exist. Adrian -- Adrian Holov