from django.db.models.signals import post_save

from apps.advice.models import StatusLog, Advice


# Добавляем запись в журнал состояний при изменении состояния консультации
def add_status_log_receiver(sender, instance, *args, **kwargs):
    c = StatusLog.objects.create(question=instance.question, status=instance.status)
    # c.save()

post_save.connect(add_status_log_receiver, sender=Advice)

9d79b8d14ccc64f94d1f9eab597944ca77e2f89c
<mask token>

<mask token>


def add_status_log_receiver(sender, instance, *args, **kwargs):
    c = StatusLog.objects.create(question=instance.question, status=
        instance.status)


<mask token>

<mask token>


def add_status_log_receiver(sender, instance, *args, **kwargs):
    c = StatusLog.objects.create(question=instance.question, status=
        instance.status)


post_save.connect(add_status_log_receiver, sender=Advice)

from django.db.models.signals import post_save
from apps.advice.models import StatusLog, Advice


def add_status_log_receiver(sender, instance, *args, **kwargs):
    c = StatusLog.objects.create(question=instance.question, status=
        instance.status)


post_save.connect(add_status_log_receiver, sender=Advice)

from django.db.models.signals import post_save

from apps.advice.models import StatusLog, Advice


# Добавляем запись в журнал состояний при изменении состояния консультации
def add_status_log_receiver(sender, instance, *args, **kwargs):
    c = StatusLog.objects.create(question=instance.question, status=instance.status)
    # c.save()

post_save.connect(add_status_log_receiver, sender=Advice)
