Answers for "def form_valid"

0

def form_valid

def form_valid(self, form):
	form.instance.user = self.request.user
    super(Your_View, self).form_valid(form)
    return redirect('home')
Posted by: Guest on September-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language