summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/jrnl/migrations/0029_home_more_popular.py18
-rw-r--r--app/jrnl/migrations/0030_remove_home_popular.py17
-rw-r--r--app/jrnl/migrations/0031_auto_20190220_1136.py22
-rw-r--r--app/jrnl/models.py2
4 files changed, 58 insertions, 1 deletions
diff --git a/app/jrnl/migrations/0029_home_more_popular.py b/app/jrnl/migrations/0029_home_more_popular.py
new file mode 100644
index 0000000..2adc219
--- /dev/null
+++ b/app/jrnl/migrations/0029_home_more_popular.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.2 on 2019-02-20 11:33
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('jrnl', '0028_auto_20190218_1614'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='home',
+ name='more_popular',
+ field=models.ManyToManyField(related_name='morepopular', to='jrnl.Entry'),
+ ),
+ ]
diff --git a/app/jrnl/migrations/0030_remove_home_popular.py b/app/jrnl/migrations/0030_remove_home_popular.py
new file mode 100644
index 0000000..8ac7408
--- /dev/null
+++ b/app/jrnl/migrations/0030_remove_home_popular.py
@@ -0,0 +1,17 @@
+# Generated by Django 2.1.2 on 2019-02-20 11:35
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('jrnl', '0029_home_more_popular'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='home',
+ name='popular',
+ ),
+ ]
diff --git a/app/jrnl/migrations/0031_auto_20190220_1136.py b/app/jrnl/migrations/0031_auto_20190220_1136.py
new file mode 100644
index 0000000..621b692
--- /dev/null
+++ b/app/jrnl/migrations/0031_auto_20190220_1136.py
@@ -0,0 +1,22 @@
+# Generated by Django 2.1.2 on 2019-02-20 11:36
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('jrnl', '0030_remove_home_popular'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='home',
+ name='more_popular',
+ ),
+ migrations.AddField(
+ model_name='home',
+ name='popular',
+ field=models.ManyToManyField(related_name='popular', to='jrnl.Entry'),
+ ),
+ ]
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index 6c334ae..16ccf49 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -207,7 +207,7 @@ class Home(models.Model):
featured_image = models.ForeignKey(LuxImage, on_delete=models.CASCADE, null=True, blank=True)
tag_line = models.CharField(max_length=200)
featured = models.ForeignKey(Entry, on_delete=models.CASCADE, related_name="banner")
- popular = models.ManyToManyField(Entry)
+ popular = models.ManyToManyField(Entry, related_name="popular")
template_name = models.CharField(max_length=200, help_text="full path")