[Answered ]-How can I fetch all SiteRelated objects for all sites in Mezzanine?

2👍

This is a Mezzanine thing.

BlogPost, and indeed most other Mezzanine models, subclass SiteRelated which sets the manager of the object to filter results for the current site. So BlogPost.objects.all() will filter results for the current site.

There is a sneaky hack you can use to bypass this manager:

BlogPost._base_manager.all()

This will fetch all objects for all sites.

Leave a comment