.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user