details update view in django code example
Example 1: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 2: django updateview
class YourView(generic.UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverselazy('home')