Modified books to book

parent bca8d177
......@@ -12,7 +12,7 @@ class Author(models.Model):
return self.first_name, self.last_name
class Books(models.Model):
class Book(models.Model):
title = models.CharField(max_length=300)
author = models.ForeignKey(Author, on_delete = models.CASCADE)
publisher = models.CharField(max_length=100)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment