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

Bugfix to event alerts

Fix "parent" object serialization for event alerts where the
"object" is also an event.  Now provide the subclass for
serialization rather than the base class.
parent 909c3dfb
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ class EventAlertIssuer(AlertIssuerWithParentEvent):
is_alert=True)
def _get_parent_obj(self):
return self.obj
return self.obj.get_subclass_or_self()
class EventLogAlertIssuer(AlertIssuerWithParentEvent):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment