Exemplo n.º 1
0
def add_restriction_precedence(setting, func):
    invalidate_model_cache(AccessControl)
    restriction_precedences[setting] = func
Exemplo n.º 2
0
def add_restriction_precedence(setting, func):
    invalidate_model_cache(AccessControl)
    restriction_precedences[setting] = func
Exemplo n.º 3
0
def add_restriction_precedence(setting, func):
    from models import AccessControl
    from rooibos.util.caching import invalidate_model_cache
    invalidate_model_cache(AccessControl)
    restriction_precedences[setting] = func