From e7a8265a14716405e9a2693ab2465e58fbf54aa2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 3 Mar 2019 15:20:47 -0600 Subject: removed old fieldnotes, added new --- app/jrnl/admin.py | 3 +-- app/jrnl/models.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 74dd593..3c35272 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -32,7 +32,7 @@ class EntryAdmin(OSMGeoAdmin): search_fields = ['title', 'body_markdown'] prepopulated_fields = {"slug": ('title',)} list_filter = ('pub_date', 'enable_comments', 'status', 'location__state__country__lux_region') - filter_horizontal = ('field_notes', 'field_notes_two', 'books') + filter_horizontal = ('field_notes', 'books') fieldsets = ( ('Entry', { 'fields': ( @@ -62,7 +62,6 @@ class EntryAdmin(OSMGeoAdmin): ('Extra', { 'fields': ( 'field_notes', - 'field_notes_two', 'books', ), 'classes': ( diff --git a/app/jrnl/models.py b/app/jrnl/models.py index dc2b3dc..c3aace3 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -66,8 +66,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) - field_notes = models.ManyToManyField(Sketch, blank=True) - field_notes_two = models.ManyToManyField(FieldNote, blank=True) + field_notes = models.ManyToManyField(FieldNote, blank=True) books = models.ManyToManyField(Book, blank=True) class Meta: -- cgit v1.2.3-70-g09d2