diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/migrations/0033_entry_field_notes_two.py | 19 | ||||
-rw-r--r-- | app/jrnl/models.py | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/jrnl/migrations/0033_entry_field_notes_two.py b/app/jrnl/migrations/0033_entry_field_notes_two.py new file mode 100644 index 0000000..b90e86b --- /dev/null +++ b/app/jrnl/migrations/0033_entry_field_notes_two.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.7 on 2019-03-03 15:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fieldnotes', '0002_auto_20190303_1222'), + ('jrnl', '0032_entry_subtitle'), + ] + + operations = [ + migrations.AddField( + model_name='entry', + name='field_notes_two', + field=models.ManyToManyField(blank=True, to='fieldnotes.FieldNote'), + ), + ] diff --git a/app/jrnl/models.py b/app/jrnl/models.py index beb0723..dc2b3dc 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -22,6 +22,7 @@ from photos.models import PhotoGallery, LuxImage, LuxImageSize from locations.models import Location from sketches.models import Sketch from books.models import Book +from fieldnotes.models import FieldNote from utils.util import render_images, parse_video, markdown_to_html @@ -66,6 +67,7 @@ class Entry(models.Model): featured_image = models.ForeignKey(LuxImage, on_delete=models.CASCADE, null=True, blank=True) has_video = models.BooleanField(blank=True, default=False) field_notes = models.ManyToManyField(Sketch, blank=True) + field_notes_two = models.ManyToManyField(FieldNote, blank=True) books = models.ManyToManyField(Book, blank=True) class Meta: |