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}
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}