(self)
return self.group._authority_perm_cache
cached_permissions will generate the cache in a lazy fashion.
cached_permissions will generate the cache in a lazy fashion.
cached_permissions will generate the cache in a lazy fashion .
def _group_perm_cache(self):
        """
        cached_permissions will generate the cache in a lazy fashion.
        """
        # Check to see if the cache has been primed.
        if not self.group:
            return {}
        cache_filled = getattr(self.group, "_authority_perm_cache_filled", False,)
        if cache_filled:
            # Don't really like the name for this, but this matches how Django
            # does it.
            return self.group._authority_perm_cache

        # Prime the cache.
        self._prime_group_perm_caches()
        return self.group._authority_perm_cache
def _group_perm_cache ( self ) : # Check to see if the cache has been primed. if not self . group : return { } cache_filled = getattr ( self . group , "_authority_perm_cache_filled" , False , ) if cache_filled : # Don't really like the name for this, but this matches how Django # does it. return self . group . _authority_perm_cache # Prime the cache. self . _prime_group_perm_caches ( ) return self . group . _authority_perm_cache