former django valide créé par
def form_valid(self, form):
form.instance.created_by = self.request.user
return super().form_valid(form)
Talented Thrush
def form_valid(self, form):
form.instance.created_by = self.request.user
return super().form_valid(form)