def METHOD_NAME(self, expected_queries=4):
    """The `select_related` attribute on setting models is `None` by default, so fetching foreign keys values requires additional queries"""
    self._create_importantpagesgenericsetting_object()
    # fetch settings and access foreign keys
    with self.assertNumQueries(expected_queries):
        settings = ImportantPagesGenericSetting.load()
        settings.sign_up_page
        settings.general_terms_page
        settings.privacy_policy_page