From 8b2b5dec69a1d5d3c9e19c5eda48d1d6f706f9b4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 2 Dec 2020 12:41:14 -0500 Subject: ready to get rid of photos model for media model --- app/pages/migrations/0007_homepage.py | 3 +-- app/pages/migrations/0008_auto_20201114_0934.py | 3 +-- app/pages/migrations/0010_page_featured_image.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'app/pages/migrations') diff --git a/app/pages/migrations/0007_homepage.py b/app/pages/migrations/0007_homepage.py index c11aae9..80682e2 100644 --- a/app/pages/migrations/0007_homepage.py +++ b/app/pages/migrations/0007_homepage.py @@ -8,7 +8,6 @@ class Migration(migrations.Migration): dependencies = [ ('posts', '0015_post_old_image'), - ('photos', '0019_auto_20190704_0903'), ('pages', '0006_page_enable_comments'), ] @@ -21,7 +20,7 @@ class Migration(migrations.Migration): ('tag_line', models.CharField(max_length=200, null=True)), ('template_name', models.CharField(help_text='full path', max_length=200)), ('featured', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='posts.post')), - ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.luximage')), + ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')), ('popular', models.ManyToManyField(related_name='popular', to='posts.Post')), ], ), diff --git a/app/pages/migrations/0008_auto_20201114_0934.py b/app/pages/migrations/0008_auto_20201114_0934.py index e8465a6..b24f46c 100644 --- a/app/pages/migrations/0008_auto_20201114_0934.py +++ b/app/pages/migrations/0008_auto_20201114_0934.py @@ -7,7 +7,6 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ('photos', '0019_auto_20190704_0903'), ('pages', '0007_homepage'), ] @@ -15,7 +14,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='homepage', name='featured_image', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='photos.luximage'), + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='media.luximage'), ), migrations.AlterField( model_name='homepage', diff --git a/app/pages/migrations/0010_page_featured_image.py b/app/pages/migrations/0010_page_featured_image.py index 931403f..d5fc5e1 100644 --- a/app/pages/migrations/0010_page_featured_image.py +++ b/app/pages/migrations/0010_page_featured_image.py @@ -7,7 +7,6 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ('photos', '0019_auto_20190704_0903'), ('pages', '0009_page_site'), ] @@ -15,6 +14,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='page', name='featured_image', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.luximage'), + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage'), ), ] -- cgit v1.2.3-70-g09d2