(request, device)
return HttpResponseRedirect(reverse("device", args=[device.uid]))
Manually triggers a re-sync of a client
Manually triggers a re-sync of a client
Manually triggers a re - sync of a client
def resync(request, device):
    """Manually triggers a re-sync of a client"""
    sync_user.delay(request.user.pk)
    messages.success(request, _("Your subscription will be updated in a moment."))
    return HttpResponseRedirect(reverse("device", args=[device.uid]))
def resync ( request , device ) : sync_user . delay ( request . user . pk ) messages . success ( request , _ ( "Your subscription will be updated in a moment." ) ) return HttpResponseRedirect ( reverse ( "device" , args = [ device . uid ] ) )