Closed GoogleCodeExporter closed 9 years ago
I propose changing the code to the following:
class PublicManager(Manager):
"""Returns published posts that are not in the future."""
def published(self):
return self.get_query_set().filter(status__gte=2, publish__lte=datetime.datetime.now())
Original comment by eallik
on 8 Oct 2008 at 8:56
Should be fixed now, thanks!
Original comment by npbor...@gmail.com
on 15 Oct 2008 at 7:25
Original issue reported on code.google.com by
eallik
on 8 Oct 2008 at 8:46