from django.db.models.signals import post_save
from django.dispatch import receiver
from .models import Item, Variation


@receiver(post_save, sender=Item)
def update_variation_item_label(sender, instance, **kwargs):
    # variations = Variation.objects.filter(item=instance)
    # item_label = instance.item_label

    # print('TRYING TO UPDATE')
    # for variation in variations:
    #     variation.item_label = item_label
    #     variation.save()
    Variation.objects.filter(item=instance).update(item_label=instance.item_label)

d131a74ee144045e978d9b9cd18a7bf50aad9e83
<mask token>

<mask token>


@receiver(post_save, sender=Item)
def update_variation_item_label(sender, instance, **kwargs):
    Variation.objects.filter(item=instance).update(item_label=instance.
        item_label)

from django.db.models.signals import post_save
from django.dispatch import receiver
from .models import Item, Variation


@receiver(post_save, sender=Item)
def update_variation_item_label(sender, instance, **kwargs):
    Variation.objects.filter(item=instance).update(item_label=instance.
        item_label)

from django.db.models.signals import post_save
from django.dispatch import receiver
from .models import Item, Variation


@receiver(post_save, sender=Item)
def update_variation_item_label(sender, instance, **kwargs):
    # variations = Variation.objects.filter(item=instance)
    # item_label = instance.item_label

    # print('TRYING TO UPDATE')
    # for variation in variations:
    #     variation.item_label = item_label
    #     variation.save()
    Variation.objects.filter(item=instance).update(item_label=instance.item_label)
