#NEWLINE# @ detail_route ( methods = [ 'GET' ] ) #NEWLINE# def updates( self , request , pk = None ) : #NEWLINE# #INDENT# 'Get all the actions that correspond to this registration.' #NEWLINE# reg = self . get_object ( ) #NEWLINE# query = Q ( actor_content_type = reg . content_type , actor_object_id = reg . object_id ) #NEWLINE# query |= Q ( target_content_type = reg . content_type , target_object_id = reg . object_id ) #NEWLINE# query |= Q ( action_object_content_type = reg . content_type , action_object_object_id = reg . object_id ) #NEWLINE# actions = Action . objects . filter ( query ) #NEWLINE# serializer = RealtimeActionSerializer ( actions , many = True ) #NEWLINE# return Response ( serializer . data )