Answers for "form valid django created by"

0

form valid django created by

def form_valid(self, form):
  form.instance.created_by = self.request.user
  return super().form_valid(form)
Posted by: Guest on July-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language