Services
hypha.apply.activity.services
¶
edit_comment
¶
Edit a comment by creating a clone of the original comment with the updated message.
Parameters:
-
activity
(Activity
) –The original comment activity to be edited.
-
message
(str
) –The new message to replace the original comment's message.
Returns:
-
Activity
(Activity
) –The edited comment activity with the updated message.
Source code in hypha/apply/activity/services.py
get_related_actions_for_user
¶
Return Activity objects related to an object, esp. useful with ApplicationSubmission and Project.
Parameters:
-
obj
–instance of a model class
-
user
–user who these actions are visible to.
Returns:
-
–
Activity
queryset
Source code in hypha/apply/activity/services.py
get_related_comments_for_user
¶
Return comments/communications related to an object, esp. useful with ApplicationSubmission and Project.
Parameters:
-
obj
–instance of a model class
-
user
–user who these actions are visible to.
Returns:
-
–
Activity
queryset