Views
hypha.apply.activity.views
¶
ActivityContextMixin
¶
Mixin to add related 'comments' of the current view's 'self.object'
get_context_data
¶
Source code in hypha/apply/activity/views.py
AttachmentView
¶
Bases: PrivateMediaView
NotificationsView
¶
Bases: ListView
get_queryset
¶
Source code in hypha/apply/activity/views.py
partial_comments
¶
Render a partial view of comments for a given submission primary key.
This view handles comments for both submission and (if existing) pulls related project activities. It checks the user's permissions and fetches the related comments for the user. The comments are paginated and rendered in the 'activity_list' template.
Parameters:
-
request
(HttpRequest
) –The HTTP request object.
-
content_type
(str
) –The type of content ('submission' or 'project').
-
pk
(int
) –The primary key of the content object.
Returns:
-
HttpResponse
–The rendered 'activity_list' template with the context data.
Source code in hypha/apply/activity/views.py
edit_comment
¶
Edit a comment.