Hi,
I'm my urls.py I have the following queryset for a generic view:
published_posts_dict = {'queryset':
Post.objects.filter(pub_date__lte=datetime.now()).filter(status='PB').order_by('-pub_date')}
the problem is, with the filter pub_date__lte=datetime.now() .
What happens,is that when I add a new post to the database, it doesn't
appear listed until y restart the web server.
(it happens with the development server and with the prodction server, on
wich I have to touch the dispatch.fcgi file to view the new Post)
No problem exists if I remove that filter.
What could be happenning here?
Thanks a lot.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---