dispatch/api/serializers.py
def queue_instance(self, embed_type, data):
        """Queue an instance to be fetched from the database."""

        serializer = self.serializers.get(embed_type, None)

        if serializer is None:
            return

        instance_id = serializer.get_id(data)

        if embed_type not in self.ids:
            self.ids[embed_type] = []

        self.ids[embed_type].append(instance_id)
def queue_instance(self, embed_type, data):
        """Queue an instance to be fetched from the database."""

        serializer = self.serializers.get(embed_type, None)

        if serializer is None:
            return

        instance_id = serializer.get_id(data)

        if embed_type not in self.ids:
            self.ids[embed_type] = []

        self.ids[embed_type].append(instance_id)
Queue an instance to be fetched from the database.