Skip to content

Signals

add_data_multimodal_conversation_entry(sender, instance, created, **kwargs)

Add data multimodal conversation

Source code in API/hardware/signals.py
 7
 8
 9
10
11
12
13
14
15
@receiver(post_save, sender=DataAudio)
def add_data_multimodal_conversation_entry(sender, instance, created, **kwargs):
    """
    Add data multimodal conversation
    """
    if created:
        DataMultiModalConversation.objects.create(
            audio=instance, track_id=instance.track_id
        )