summaryrefslogtreecommitdiff
path: root/app/books/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-12-23 08:10:09 -0500
committerluxagraf <sng@luxagraf.net>2019-12-23 08:10:09 -0500
commit4d09849f85a70794dd78b7aee7fab5a67e11ceae (patch)
tree1cfb31e0656db84e15d14b7a1ef22ee94ac1a526 /app/books/models.py
parentc697bf6e78e483623b7fe19f23ca3303cd29461a (diff)
fixed a bug in new book interface
Diffstat (limited to 'app/books/models.py')
-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()