updating a modelviewset django code example
Example: django updateview
class YourView(generic.UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverselazy('home')
class YourView(generic.UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverselazy('home')