AttributeError on when combine user and profile

the solution to add detail on

    @receiver(post_save, sender=User) 
def create_profile(sender, instance, created, **kwargs):
    if created:

    post_save.connect(create_profile, sender=User)
    @receiver(post_save, sender=User) 
    def update_profile(sender, instance, created, **kwargs):
        if created == False:
            print('Profile updated!!')
    post_save.connect(update_profile, sender=User)  

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top