This commit is contained in:
Ross
2021-09-21 18:34:07 +01:00
parent 0e3ca7df71
commit d30feb34ac
3 changed files with 30 additions and 26 deletions
+1
View File
@@ -213,6 +213,7 @@ class AddQuestionNote(CreateView):
"object_id" : pk }
def get_context_data(self, **kwargs):
# This can also be accessed via view.**** in the template
context = super(AddQuestionNote, self).get_context_data(**kwargs)
context['question'] = self.question
return context