from django.db.models.signals import post_save,pre_save,post_delete,pre_delete
from django.dispatch import receiver
from.models import Book,Isbn,User


@receiver(post_save,sender=Book)
def after_book_creation(sender,instance,created,*args,**kwargs):
        if created:
            isbn_instance=Isbn.objects.create(title,author)