comments.views module

class comments.views.CommentListView(**kwargs)[source]

Bases: scipost.mixins.PaginationMixin, django.views.generic.list.ListView

model

alias of comments.models.Comment

form

alias of comments.forms.CommentTextSearchForm

paginate_by = 10
context_object_name = 'comment_list'
get_queryset()[source]

Perform search form here already to get the right pagination numbers.

get_context_data(**kwargs)[source]

Get the context for this view.

comments.views.new_comment(request, **kwargs)[source]

Form view to submit new Comment.

comments.views.vet_submitted_comments_list(request)[source]

Replace by a list page instead?

comments.views.vet_submitted_comment(request, comment_id)[source]
comments.views.reply_to_comment(request, comment_id)[source]
comments.views.reply_to_report(request, report_id)[source]
comments.views.attachment(request, comment_id)[source]

Open/read attachment of Comment if available.