Maintenance will be performed on,,, and tomorrow, 2020/08/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

Commit ab81c11c authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

superevents: clean up some comments in public alerts view

parent 6c8e2a97
......@@ -174,7 +174,8 @@ class SupereventPublic(DisplayFarMixin, ListView):
# Get base context
context = super(SupereventPublic, self).get_context_data(**kwargs)
#-- For each superevent, get list of log messages and construct pastro string
# For each superevent, get list of log messages and construct pastro
# string
candidates = 0
for se in self.object_list:
......@@ -205,10 +206,8 @@ class SupereventPublic(DisplayFarMixin, ListView):
# Get list of viewable logs for user which are tagged with
# 'analyst_comments'
#viewable_logs = get_objects_for_user(self.request.user,
# self.log_view_permission,
# klass=se.log_set.filter(tags__name='analyst_comments'))
viewable_logs = se.log_set.filter(tags__name='public').filter(tags__name='analyst_comments')
viewable_logs = se.log_set.filter(tags__name='public').filter(
# Compile comments from these logs
se.comments = ' ** '.join(list(viewable_logs.values_list(
'comment', flat=True)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment