diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/migrations/0045_entry_books_new.py | 19 | ||||
-rw-r--r-- | app/jrnl/models.py | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/app/jrnl/migrations/0045_entry_books_new.py b/app/jrnl/migrations/0045_entry_books_new.py new file mode 100644 index 0000000..a941088 --- /dev/null +++ b/app/jrnl/migrations/0045_entry_books_new.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.6 on 2019-11-10 08:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('books', '0009_book_afflink'), + ('jrnl', '0044_auto_20190917_1703'), + ] + + operations = [ + migrations.AddField( + model_name='entry', + name='books_new', + field=models.ManyToManyField(blank=True, related_name='luxbooks', to='books.Book'), + ), + ] diff --git a/app/jrnl/models.py b/app/jrnl/models.py index 8e8e606..42b5b7d 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -79,6 +79,7 @@ class Entry(models.Model): has_video = models.BooleanField(blank=True, default=False) field_notes = models.ManyToManyField(FieldNote, blank=True) books = models.ManyToManyField(Book, blank=True) + books_new = models.ManyToManyField(Book, related_name="luxbooks", blank=True) related = models.ManyToManyField(OldRelatedPost, blank=True) class Meta: |