updateview code example
Example: updateview
class YourView(UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverse_lazy('home')
class YourView(UpdateView):
model = YourModel
fields = ['your_fields']
template_name = 'your_template.html'
success_url = reverse_lazy('home')