summaryrefslogtreecommitdiff
path: root/app/jrnl
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-11-10 08:54:15 -0500
committerluxagraf <sng@luxagraf.net>2019-11-10 08:54:15 -0500
commitb0112011a6dbbfd12beecb8fdcfb9e7e84808e72 (patch)
tree2873f36628b56d542ac4009f986c3451a38ede81 /app/jrnl
parent69f343a831639b1a4e51a832c2e3ce3ad86534c1 (diff)
added new books relation to jrnl
Diffstat (limited to 'app/jrnl')
-rw-r--r--app/jrnl/migrations/0045_entry_books_new.py19
-rw-r--r--app/jrnl/models.py1
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: