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
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
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)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
3 matches
Mail list logo