.
This commit is contained in:
@@ -212,6 +212,11 @@ class AddQuestionNote(CreateView):
|
||||
return { "content_type" : content_type,
|
||||
"object_id" : pk }
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(AddQuestionNote, self).get_context_data(**kwargs)
|
||||
context['question'] = self.question
|
||||
return context
|
||||
|
||||
def form_valid(self, form):
|
||||
|
||||
model = form.save(commit=False)
|
||||
|
||||
Reference in New Issue
Block a user