diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/migrations/0054_auto_20201111_2148.py | 23 | ||||
-rw-r--r-- | app/jrnl/models.py | 3 |
2 files changed, 24 insertions, 2 deletions
diff --git a/app/jrnl/migrations/0054_auto_20201111_2148.py b/app/jrnl/migrations/0054_auto_20201111_2148.py new file mode 100644 index 0000000..bdeb63f --- /dev/null +++ b/app/jrnl/migrations/0054_auto_20201111_2148.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1 on 2020-11-11 21:48 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('posts', '0012_remove_post_field_notes'), + ('jrnl', '0053_auto_20201027_2105'), + ] + + operations = [ + migrations.RemoveField( + model_name='entry', + name='old_field_notes', + ), + migrations.AlterField( + model_name='entry', + name='field_notes', + field=models.ManyToManyField(blank=True, limit_choices_to={'post_type': 5}, to='posts.Post'), + ), + ] diff --git a/app/jrnl/models.py b/app/jrnl/models.py index 830a244..f3c0626 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -24,7 +24,6 @@ from django_comments.moderation import CommentModerator, moderator 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 @@ -78,7 +77,7 @@ 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) - old_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) |