.
This commit is contained in:
+7
-1
@@ -160,4 +160,10 @@ def feedback_create(request, question_type, pk):
|
||||
|
||||
class AddQuestionNote(LoginRequiredMixin, CreateView):
|
||||
model = QuestionNote
|
||||
form_class = QuestionNoteForm
|
||||
form_class = QuestionNoteForm
|
||||
|
||||
def get_form_kwargs(self):
|
||||
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
|
||||
return kwargs
|
||||
Reference in New Issue
Block a user