#NEWLINE# @ csrf_exempt #NEWLINE# @ require_objs_permissions_for_view ( [ 'can_get_x2' , 'can_read_val' ] , get_user_from_req , get_queryset ( PermissionTestClass , 'obj_id' ) ) #NEWLINE# def test_view_x2( request , obj_id = None ) : #NEWLINE# #INDENT# obj = get_object_or_404 ( PermissionTestClass , pk = obj_id ) #NEWLINE# return HttpResponse ( ( '%s' % obj . get_val_x2 ( user_kw = request . user ) ) )