I have used Django\'s reverse multiple times in the past but getting this error today which doesn\'t seem intuitive enough to debug:
reverse
TypeError: _rev
You can also try to use kwargs={'pk':models_saving_variable.pk}.
kwargs={'pk':models_saving_variable.pk}
The final code will be:
return HttpResponseRedirect(reverse('app_name:view_name', kwargs={'pk': saving_variable.pk}))