diff options
Diffstat (limited to 'app/jrnl/models.py')
-rw-r--r-- | app/jrnl/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py index 9ceac2d..830a244 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -25,6 +25,7 @@ from photos.models import PhotoGallery, LuxImage, LuxImageSize from locations.models import Location from books.models import Book from fieldnotes.models import FieldNote +from posts.models import Post from normalize.models import RelatedPost from utils.util import render_images, parse_video, markdown_to_html @@ -77,7 +78,8 @@ class Entry(models.Model): template_name = models.IntegerField(choices=TEMPLATES, default=0) 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(FieldNote, blank=True) + old_field_notes = models.ManyToManyField(FieldNote, blank=True) + field_notes = models.ManyToManyField(Post, blank=True, limit_choices_to={'post_type': 5}) books = models.ManyToManyField(Book, related_name="luxbooks", blank=True) oldrelated = models.ManyToManyField(OldRelatedPost, blank=True) related = models.ManyToManyField(RelatedPost, blank=True) |