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_activities_for_user
¶
Return comments/communications related to an object, esp. useful with ApplicationSubmission and Project.
Parameters:
-
obj–instance of either an
ApplicationSubmissionorProject. -
user–user who these actions are visible to.
Returns:
-
–
Activityqueryset