summaryrefslogtreecommitdiff
path: root/app/books
diff options
context:
space:
mode:
Diffstat (limited to 'app/books')
-rw-r--r--app/books/models.py2
1 files changed, 1 insertions, 1 deletions
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()