commentaries.views module¶
-
class
commentaries.views.
RequestCommentary
(**kwargs)[source]¶ Bases:
django.views.generic.edit.CreateView
-
success_url
= '/personal_page/'¶
-
dispatch
(request, *args, **kwargs)¶
-
-
class
commentaries.views.
RequestPublishedArticle
(**kwargs)[source]¶ Bases:
commentaries.views.RequestCommentary
-
form_class
¶
-
template_name
= 'commentaries/request_published_article.html'¶
-
-
class
commentaries.views.
RequestArxivPreprint
(**kwargs)[source]¶ Bases:
commentaries.views.RequestCommentary
-
form_class
¶
-
template_name
= 'commentaries/request_arxiv_preprint.html'¶
-
-
commentaries.views.
vet_commentary_requests
(request, commentary_id=None)[source]¶ Show the first commentary thats awaiting vetting
-
commentaries.views.
modify_commentary_request
(request, commentary_id)[source]¶ Modify a commentary request after vetting with status ‘modified’.
-
class
commentaries.views.
CommentaryListView
(**kwargs)[source]¶ Bases:
scipost.mixins.PaginationMixin
,django.views.generic.list.ListView
-
model
¶ alias of
commentaries.models.Commentary
-
form
¶
-
paginate_by
= 10¶
-
context_object_name
= 'commentary_list'¶
-