[Answered ]-Create a save data using Django post_save() Signal

1👍

Edited

You have to change the signal function, You try to get created from kwargs. created is already defined in the function parameter also same for instance. See the code for a better understanding:

@receiver(post_save, sender=Lead)
def create_heatmap_for_lead(sender, instance, created, **kwargs):
    if created:
        HeatMap.objects.create(heatmap_type=instance)

Leave a comment