django updateview post methode code example
Example 1: django updateview
class YourView(generic.UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverselazy('home')
Example 2: django update request.post
request.POST = request.POST.copy()
request.POST.update({
"foo":"bar"
})