form.is_valid() code example
Example: form_valid
def form_valid(self, form):
form.instance.user = self.request.user
super(Your_View, self).form_valid(form)
return redirect('home')
def form_valid(self, form):
form.instance.user = self.request.user
super(Your_View, self).form_valid(form)
return redirect('home')