This commit is contained in:
Ross
2021-09-09 16:47:05 +01:00
parent ff86ad2a54
commit 62af5645a2
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -209,6 +209,7 @@ class AddQuestionNote(CreateView):
kwargs = super(AddQuestionNote, self).get_form_kwargs()
# update the kwargs for the form init method with yours
kwargs.update(self.kwargs) # self.kwargs contains all url conf params
kwargs.update({"user": self.request.user})
return kwargs
def get_initial(self):