form valid

Solutions on MaxInterview for form valid by the best coders in the world

showing results for - "form valid"
Alessandra
19 Sep 2020
1def form_valid(self, form):
2	form.instance.user = self.request.user
3    super(Your_View, self).form_valid(form)
4    return redirect('home')