stevencoding / django-basic-apps

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

[blog] post manager filters #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PostManager.published() expected behaviour is to return posts with
published time before now.

The thing is that the filter_dict that is used for filtering Posts is
evaluated on the PostManager.__init__() method instead of the published()
method causing weird behaviour:

from basic.blog import Post
Post.objects.published()
#create a new post
Post.objects.published() does not include the new post because filter_dict
is already evaluated.

Original issue reported on code.google.com by yati...@gmail.com on 27 Nov 2008 at 9:38

Attachments:

GoogleCodeExporter commented 8 years ago
I believe this has been fixed.

Original comment by npbor...@gmail.com on 23 Jan 2009 at 6:22