From 4d09849f85a70794dd78b7aee7fab5a67e11ceae Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 23 Dec 2019 08:10:09 -0500 Subject: fixed a bug in new book interface --- app/books/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/books') diff --git a/app/books/models.py b/app/books/models.py index eb516a8..004ed8c 100644 --- a/app/books/models.py +++ b/app/books/models.py @@ -102,7 +102,7 @@ def post_save_events(sender, update_fields, created, instance, **kwargs): class BookHighlight(models.Model): - book = models.ForeignKey(Book, on_delete=models.CASCADE) + book = models.ForeignKey(Book, on_delete=models.CASCADE, blank=True) page = models.PositiveSmallIntegerField() date_added = models.DateTimeField(blank=True, auto_now_add=True) body_markdown = models.TextField() -- cgit v1.2.3-70-g09d2