.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{{view.question}}
|
||||||
|
{{view.question.pk}}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Add Feedback</h2>
|
<h2>Add Feedback</h2>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
|
|||||||
+1
-1
@@ -208,7 +208,7 @@ class AddQuestionNote(CreateView):
|
|||||||
|
|
||||||
question, content_type = get_question_and_content_type(question_type)
|
question, content_type = get_question_and_content_type(question_type)
|
||||||
|
|
||||||
get_object_or_404(question, pk=pk)
|
self.question = get_object_or_404(question, pk=pk)
|
||||||
return { "content_type" : content_type,
|
return { "content_type" : content_type,
|
||||||
"object_id" : pk }
|
"object_id" : pk }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user