summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-03-03 15:20:47 -0600
committerluxagraf <sng@luxagraf.net>2019-03-03 15:20:47 -0600
commite7a8265a14716405e9a2693ab2465e58fbf54aa2 (patch)
treeca248f026774227a0310893b9e021c6b91a27f2a
parent67556f93a23ee952b8a0c3e4427cdf278cd23431 (diff)
removed old fieldnotes, added new
-rw-r--r--app/jrnl/admin.py3
-rw-r--r--app/jrnl/models.py3
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: