Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

poset save @reciever created

@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **kwargs):
    if created:
        Profile1.objects.create(customer=instance)

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #poset #save #created
ADD COMMENT
Topic
Name
4+1 =