added comments to Book model

parent a7a6f4d6
......@@ -10,6 +10,8 @@ class Author(models.Model):
nationality = models.CharField(max_length = 50)
bio = models.CharField(max_length = 700)
#Book
#title; author; publisher; year_published; ISBN; blurb
class Book(models.Model):
title = models.CharField(max_length = 100)
author = models.ForeignKey(Author, on_delete = models.CASCADE)
......
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