def all(self):
        a = {}
        if not preferences_settings.ENABLE_CACHE:
            return self.load_from_db()

        try:
            for preference in self.registry.preferences():
                a[preference.identifier()] = self.from_cache(
                    preference.section.name, preference.name)
        except CachedValueNotFound:
            return self.load_from_db()

        return a
Return a dictionary containing all preferences by section
dataset/ETHPy150Open EliotBerriot/django-dynamic-preferences/dynamic_preferences/managers.py/PreferencesManager.all