Dnia 2011-06-22, śro o godzinie 06:32 -0700, Wim Feijen pisze:
> Our query is:
> 
> newsitems = NewsItem.objects.filter(Q(expires_at__gt = datetime.now())
> | Q(expires_at__isnull = True), effective_at__lte = datetime.now(),
> is_active=True).order_by('-news_timestamp')
> 
> Or is datetime.now() fixed to the past? 

You're probably gonna have to elaborate on your code, but did you try
datetime.now without calling it? IIUC that helps here and there, not
sure it will in your particular case.
-- 
Michał (Saviq) Sawicz <mic...@sawicz.net>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to