예제 #1
0
파일: views.py 프로젝트: dahool/regeer
def list_admin_actions(request, id):
    '''all actions an admin did on this user
    '''
    client = get_object_or_404(Client, id=id, using=request.server)
    notices = _paginate(request, client.admin_logs.all())
    return {'client_adm_logs': notices,
            'client': client}
예제 #2
0
파일: views.py 프로젝트: dahool/regeer
def list_commands(request, id):
    '''all actions performed by this user
    '''
    client = get_object_or_404(Client, id=id, using=request.server)
    notices = _paginate(request, client.commands.all())
    return {'client_adm_commands': notices,
            'client': client}