@detail_route(methods=['GET'])
    def updates(self, request, pk=None):
        reg = self.get_object()

        query = Q(actor_content_type=reg.content_type, actor_object_id=reg.object_id)
        query |= Q(target_content_type=reg.content_type, target_object_id=reg.object_id)
        query |= Q(action_object_content_type=reg.content_type,
                   action_object_object_id=reg.object_id)

        actions = Action.objects.filter(query)
        serializer = RealtimeActionSerializer(actions, many=True)

        return Response(serializer.data)
Generate pseudorandom number.
dataset/ETHPy150Open mozilla/kitsune/kitsune/notifications/api.py/RealtimeRegistrationViewSet.updates--crossover with--dataset/ETHPy150Open ibagrak/algae/gae/libs/oauth2/__init__.py/generate_verifier