summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-03-03 15:35:50 -0600
committerluxagraf <sng@luxagraf.net>2019-03-03 15:35:50 -0600
commit742820a0f6ad0c8e05d127d48b3724ebef1b702a (patch)
tree5eeab9df03afea7569463e5f7e465412e19a5d06 /app
parenta7d51bb569ce2c3ff0830e4cd2a1369dd75dd05f (diff)
migrated essays to new field_notes
Diffstat (limited to 'app')
-rw-r--r--app/essays/migrations/0006_auto_20190303_1625.py18
-rw-r--r--app/essays/models.py4
2 files changed, 20 insertions, 2 deletions
diff --git a/app/essays/migrations/0006_auto_20190303_1625.py b/app/essays/migrations/0006_auto_20190303_1625.py
new file mode 100644
index 0000000..dde70fd
--- /dev/null
+++ b/app/essays/migrations/0006_auto_20190303_1625.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.7 on 2019-03-03 16:25
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('essays', '0005_auto_20190208_0946'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='essay',
+ name='field_notes',
+ field=models.ManyToManyField(blank=True, to='fieldnotes.FieldNote'),
+ ),
+ ]
diff --git a/app/essays/models.py b/app/essays/models.py
index 32ed053..5a29667 100644
--- a/app/essays/models.py
+++ b/app/essays/models.py
@@ -8,7 +8,7 @@ from taggit.managers import TaggableManager
from taxonomy.models import TaggedItems
from utils.util import render_images, markdown_to_html
-from sketches.models import Sketch
+from fieldnotes.models import FieldNote
from books.models import Book
from photos.models import LuxImage
@@ -43,7 +43,7 @@ class Essay(models.Model):
originally_published_by_url = models.CharField(max_length=400, blank=True)
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 = models.ManyToManyField(FieldNote, blank=True)
books = models.ManyToManyField(Book, blank=True)
afterword = models.TextField(blank=True)
afterword_html = models.TextField(blank=True)