Hi,

I'm using this manager in order to display only the articles which
have the status "P"(published). By default all the articles have the
status "D" (draft).

class ArticleManager(models.Manager):

    def get_query_set(self):
        queryset = super(ArticleManager, self).get_query_set()
        return queryset.filter(status__exact='P',
created__lte=datetime.now())

When I change the article status from "D" to "P" the changes are not
reflected on the front page. Is there a way to solve this issue?

Thanks,
Cornel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to