diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/admin.py | 2 | ||||
-rw-r--r-- | app/jrnl/migrations/0048_auto_20191205_1720.py | 18 | ||||
-rw-r--r-- | app/jrnl/migrations/0049_entry_newrelated.py | 19 | ||||
-rw-r--r-- | app/jrnl/models.py | 3 |
4 files changed, 40 insertions, 2 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index 78a2630..1d97cfe 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -44,7 +44,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', 'books', 'related') + filter_horizontal = ('field_notes', 'books', 'newrelated') fieldsets = ( ('Entry', { 'fields': ( diff --git a/app/jrnl/migrations/0048_auto_20191205_1720.py b/app/jrnl/migrations/0048_auto_20191205_1720.py new file mode 100644 index 0000000..51be2f1 --- /dev/null +++ b/app/jrnl/migrations/0048_auto_20191205_1720.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.6 on 2019-12-05 17:20 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('jrnl', '0047_auto_20191110_0859'), + ] + + operations = [ + migrations.RenameField( + model_name='entry', + old_name='related', + new_name='oldrelated', + ), + ] diff --git a/app/jrnl/migrations/0049_entry_newrelated.py b/app/jrnl/migrations/0049_entry_newrelated.py new file mode 100644 index 0000000..3bd8dee --- /dev/null +++ b/app/jrnl/migrations/0049_entry_newrelated.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.6 on 2019-12-05 17:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('normalize', '0001_initial'), + ('jrnl', '0048_auto_20191205_1720'), + ] + + operations = [ + migrations.AddField( + model_name='entry', + name='newrelated', + field=models.ManyToManyField(blank=True, to='normalize.RelatedPost'), + ), + ] diff --git a/app/jrnl/models.py b/app/jrnl/models.py index a9be032..6b0b154 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -79,7 +79,8 @@ class Entry(models.Model): has_video = models.BooleanField(blank=True, default=False) field_notes = models.ManyToManyField(FieldNote, blank=True) books = models.ManyToManyField(Book, related_name="luxbooks", blank=True) - related = models.ManyToManyField(OldRelatedPost, blank=True) + oldrelated = models.ManyToManyField(OldRelatedPost, blank=True) + newrelated = models.ManyToManyField(RelatedPost, blank=True) class Meta: ordering = ('-pub_date',) |