diff options
author | luxagraf <sng@luxagraf.net> | 2019-12-23 08:10:09 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-12-23 08:10:09 -0500 |
commit | 4d09849f85a70794dd78b7aee7fab5a67e11ceae (patch) | |
tree | 1cfb31e0656db84e15d14b7a1ef22ee94ac1a526 /app/books/models.py | |
parent | c697bf6e78e483623b7fe19f23ca3303cd29461a (diff) |
fixed a bug in new book interface
Diffstat (limited to 'app/books/models.py')
-rw-r--r-- | app/books/models.py | 2 |
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() |