def settings(request):
    from django.conf import settings

    config = getattr(settings, 'ARISTOTLE_SETTINGS', {})

    return {
        "config": config,
        'bulk_actions': get_bulk_actions(),
    }
def settings(request):
    from django.conf import settings
    from aristotle_mdr.models import WORKGROUP_OWNERSHIP

    config = getattr(settings, 'ARISTOTLE_SETTINGS', {})

    return {
        "config": config,
        'bulk_actions': get_bulk_actions(),
        'workgroup_ownership': WORKGROUP_OWNERSHIP
    }
def settings(request):
    return {
        "config": fetch_aristotle_settings(),
        'bulk_actions': get_bulk_actions(),
    }
示例#4
0
def can_use_action(user, bulk_action, *args):
    from aristotle_mdr.views.bulk_actions import get_bulk_actions
    bulk_action = get_bulk_actions().get(bulk_action)
    return bulk_action['can_use'](user)
def can_use_action(user, bulk_action, *args):
    from aristotle_mdr.views.bulk_actions import get_bulk_actions
    bulk_action = get_bulk_actions().get(bulk_action)
    return bulk_action['can_use'](user)