Hi,

i'm trying to filter content on \mezzanine\page\admin.py, my method 
queryset is executed,
but the items removed from de query continue showing on the list view


class PageAdmin(DisplayableAdmin):
    """
    Admin class for the ``Page`` model and all subclasses of
    ``Page``. Handles redirections between admin interfaces for the
    ``Page`` model and its subclasses.
    """

    fieldsets = page_fieldsets

    def queryset(self, request):
        qs = super(PageAdmin, self).queryset(request)
        from django.db.models import Q
        query = qs.filter(~Q(content_model = 'hotsite'))
        return query

    .
    .
    .
    .

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to