Skip to content
Snippets Groups Projects
Commit e2f3a36e authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

General code cleanup and adding comments

parent ce9f2be9
Branches
Tags
No related merge requests found
......@@ -101,6 +101,8 @@ LVEM_OBSERVERS_GROUP = 'gw-astronomy:LV-EM:Observers'
EXEC_GROUP = 'executives'
# EM Advocate group name
EM_ADVOCATE_GROUP = 'em_advocates'
# Analysis groups
# Analysis group name for non-GW events
EXTERNAL_ANALYSIS_GROUP = 'External'
......
......@@ -40,7 +40,6 @@ class ParentObjectDefault(CustomHiddenDefault):
self.view_get_parent_method)
if callable(value):
value = value()
#value = serializer_field.context['view'].get_parent()
return value
......
......@@ -24,6 +24,7 @@ class SupereventSearchFilter(filters.SearchFilter):
# MDC superevents
#if not query:
# query = ''
# Currently, we just return the full queryset
if not query:
return queryset
......
......@@ -371,6 +371,10 @@ class SupereventLogSerializer(serializers.ModelSerializer):
class SupereventLogTagSerializer(serializers.ModelSerializer):
"""
Note: this is a little janky due to the lack of a "through" model for
the m2m relationship.
"""
default_error_messages = {
'tag_exists_for_log': _('Tag is already applied to this log message'),
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment