Skip to content
Snippets Groups Projects
Commit 517118c2 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add the comment list to the submission page

parent 68abeb60
No related branches found
No related tags found
No related merge requests found
{% for comment in comments %}
<div>
<p>{{ comment.timestamp }}</p>
<p>{{ comment.user }}</p>
<p>{{ comment.message }}</p>
</div>
{% endfor %}
...@@ -8,6 +8,7 @@ class CommentContextMixin: ...@@ -8,6 +8,7 @@ class CommentContextMixin:
# Adds the comment form to the context # Adds the comment form to the context
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
extra = { extra = {
'comments': Activity.objects.filter(application=self.object),
CommentFormView.context_name: CommentFormView.form_class(), CommentFormView.context_name: CommentFormView.form_class(),
} }
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
</div> </div>
{% endif %} {% endif %}
{% include "activity/include/comment_form.html" %} {% include "activity/include/comment_form.html" %}
{% include "activity/include/comment_list.html" %}
</aside> </aside>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment