queryset = Post.objects.filter(date__lte=dt.now())
Shouldn't that just be part of PublicPostManager? Both seem to have
the same purpose.
In fact, my recent change to hide is_draft should probably have used
user.is_staff to select between Post.all_objects and Post.objects so
that all 'publicness' was in PublicPostManager.
--
Ben Jackson AD7GD
<b...@ben.com>
http://www.ben.com/
> I see a lot of:
> queryset = Post.objects.filter(date__lte=dt.now())
> Shouldn't that just be part of PublicPostManager? Both seem to have
> the same purpose.
Good idea!
--
Alexander