Hello Anders,

Thank you for your reply.

Like I said this is my first app in Django and I guess this is one of
those logic things that is best I overcome early ;)

I have tried what I think is your suggestion that is:

story_list.filter(pub_date <= datetime.now())

And django says that global name 'pub_date' is not defined.

Now pub_date is in the story model. I thought it would have been in
the story_list object because of: story_list =
tag.story_set.order_by('-pub_date', 'title')

But it's not.

Any ideas what I am doing wrong ?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to