Get /feeds/last-call/ working on Django 1.0 (item_pubdate must return datetime)

- Legacy-Id: 1651
This commit is contained in:
Pasi Eronen 2009-08-13 20:48:51 +00:00
parent bae2b36d27
commit 9fd78b31c7

View file

@ -57,5 +57,7 @@ class InLastCall(Feed):
return ret
def item_pubdate(self, item):
return item.document().lc_sent_date
# this method needs to return a datetime instance, even
# though the database has only date, not time
return datetime.datetime.combine(item.document().lc_sent_date, datetime.time(0,0,0))