@require_POST
@csrf_protect
def hardlink(request):
 if (not test_user_authenticated(request)):
  return login(request, next='/cobbler_web/hardlink', expired=True)
 remote.background_hardlink({}, request.session['token'])
 return HttpResponseRedirect('/cobbler_web/task_created')

@ require_POST @ csrf_protect def hardlink ( request ) : if ( not test_user_authenticated ( request ) ) : return login ( request , next = '/cobbler_web/hardlink' , expired = True ) remote . background_hardlink ( { } , request . session [ 'token' ] ) return HttpResponseRedirect ( '/cobbler_web/task_created' )
hardlinks files between repos and install trees to save space .