Beispiel #1
0
def add_restriction_precedence(setting, func):
    invalidate_model_cache(AccessControl)
    restriction_precedences[setting] = func
Beispiel #2
0
def add_restriction_precedence(setting, func):
    invalidate_model_cache(AccessControl)
    restriction_precedences[setting] = func
Beispiel #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