stevencoding / django-basic-apps

Automatically exported from code.google.com/p/django-basic-apps
0 stars 0 forks source link

LiveManager retains publish__lte value #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
At least under the development server, LiveManager seems to be retaining
the maximum publish datetime on line 8 of blog/managers.py - the dict gets
the value for publish__lte on the first construction of LiveManager. All
further instances of LiveManager have the same value, so only your first
blog post shows up. Resetting the value for publish__lte when published()
is called fixes this.

Original issue reported on code.google.com by m...@preloaded.com on 4 Sep 2008 at 10:45

GoogleCodeExporter commented 8 years ago
Oh, I meant PublicManager. Not LiveManager. *rolls eyes at self*

Original comment by m...@preloaded.com on 4 Sep 2008 at 10:47

GoogleCodeExporter commented 8 years ago
Spent a little too long tracking this down all over again tonight. There is no 
reason
to store the filter when the manager is initialized. The attached patch moves 
the
filter definition back into published(), fixing the issue.

Original comment by will.dy...@gmail.com on 4 Oct 2008 at 8:15

Attachments:

GoogleCodeExporter commented 8 years ago
Should be fixed now, thanks!

Original comment by npbor...@gmail.com on 15 Oct 2008 at 7:25