Hi Nate, You can pass additional filter arguments to get_next_by_pub_date method like this: entry.get_next_by_pub_date(is_published = True)
Regards, Konstantin On 9/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In my blog I take advantage of get_next_by_FIELD (pub_date in this case) > for navigation to older and newer stories in my entry detail view. I > also have a flag in my entry model that says whether or not a blog entry > is published. I defined an alternate manager called "published" to make > it easier to pick out only published entries. > > My problem is that my older/newer navigation that uses > entry.get_next_by_pub_date also picks up unpublished entries. Is there > a way to tell get_next_by_pub_date to use the manager "published" > instead of "objects?" > > Nate > > > > -- http://step-inside.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---