Add notifications link to ad_hoc command details.

This commit is contained in:
Aaron Tan
2016-08-08 17:13:40 -04:00
parent 01588af5ac
commit bea36bd1dc
3 changed files with 10 additions and 0 deletions

View File

@@ -3300,6 +3300,14 @@ class AdHocCommandActivityStreamList(SubListAPIView):
return super(AdHocCommandActivityStreamList, self).get(request, *args, **kwargs)
class AdHocCommandNotificationsList(SubListAPIView):
model = Notification
serializer_class = NotificationSerializer
parent_model = AdHocCommand
relationship = 'notifications'
class SystemJobList(ListCreateAPIView):
model = SystemJob