diff --git a/etna/articles/migrations/0109_articleindexpage_twitter_og_description_and_more.py b/etna/articles/migrations/0109_articleindexpage_twitter_og_description_and_more.py index e843fe234..5ee96a492 100644 --- a/etna/articles/migrations/0109_articleindexpage_twitter_og_description_and_more.py +++ b/etna/articles/migrations/0109_articleindexpage_twitter_og_description_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.8 on 2024-08-08 08:47 +# Generated by Django 5.0.8 on 2024-08-08 11:44 # etna:allowAlterField import django.db.models.deletion diff --git a/etna/collections/migrations/0059_explorerindexpage_twitter_og_description_and_more.py b/etna/collections/migrations/0059_explorerindexpage_twitter_og_description_and_more.py index c98561a84..101ebef6c 100644 --- a/etna/collections/migrations/0059_explorerindexpage_twitter_og_description_and_more.py +++ b/etna/collections/migrations/0059_explorerindexpage_twitter_og_description_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.8 on 2024-08-08 08:47 +# Generated by Django 5.0.8 on 2024-08-08 11:44 # etna:allowAlterField import django.db.models.deletion diff --git a/etna/generic_pages/migrations/0032_generalpage_twitter_og_description_and_more.py b/etna/generic_pages/migrations/0032_generalpage_twitter_og_description_and_more.py index f7c8c75c2..7a5efb51e 100644 --- a/etna/generic_pages/migrations/0032_generalpage_twitter_og_description_and_more.py +++ b/etna/generic_pages/migrations/0032_generalpage_twitter_og_description_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.8 on 2024-08-08 08:47 +# Generated by Django 5.0.8 on 2024-08-08 11:44 # etna:allowAlterField import django.db.models.deletion diff --git a/etna/home/migrations/0029_homepage_twitter_og_description_and_more.py b/etna/home/migrations/0029_homepage_twitter_og_description_and_more.py index deb500c84..52b050d87 100644 --- a/etna/home/migrations/0029_homepage_twitter_og_description_and_more.py +++ b/etna/home/migrations/0029_homepage_twitter_og_description_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.8 on 2024-08-08 08:47 +# Generated by Django 5.0.8 on 2024-08-08 11:44 # etna:allowAlterField import django.db.models.deletion diff --git a/etna/people/migrations/0007_peopleindexpage_twitter_og_description_and_more.py b/etna/people/migrations/0007_peopleindexpage_twitter_og_description_and_more.py new file mode 100644 index 000000000..a91b9b430 --- /dev/null +++ b/etna/people/migrations/0007_peopleindexpage_twitter_og_description_and_more.py @@ -0,0 +1,110 @@ +# Generated by Django 5.0.8 on 2024-08-08 11:44 +# etna:allowAlterField + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("images", "0009_alter_customimage_custom_sensitive_image_warning"), + ("people", "0006_alter_authortag_author"), + ] + + operations = [ + migrations.AddField( + model_name="peopleindexpage", + name="twitter_og_description", + field=models.TextField( + blank=True, + help_text="If left blank, the OpenGraph description will be used.", + null=True, + verbose_name="Twitter OpenGraph description", + ), + ), + migrations.AddField( + model_name="peopleindexpage", + name="twitter_og_image", + field=models.ForeignKey( + blank=True, + help_text="If left blank, the OpenGraph image will be used.", + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="+", + to="images.customimage", + verbose_name="Twitter OpenGraph image", + ), + ), + migrations.AddField( + model_name="peopleindexpage", + name="twitter_og_title", + field=models.CharField( + blank=True, + help_text="If left blank, the OpenGraph title will be used.", + max_length=255, + null=True, + verbose_name="Twitter OpenGraph title", + ), + ), + migrations.AddField( + model_name="personpage", + name="twitter_og_description", + field=models.TextField( + blank=True, + help_text="If left blank, the OpenGraph description will be used.", + null=True, + verbose_name="Twitter OpenGraph description", + ), + ), + migrations.AddField( + model_name="personpage", + name="twitter_og_image", + field=models.ForeignKey( + blank=True, + help_text="If left blank, the OpenGraph image will be used.", + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="+", + to="images.customimage", + verbose_name="Twitter OpenGraph image", + ), + ), + migrations.AddField( + model_name="personpage", + name="twitter_og_title", + field=models.CharField( + blank=True, + help_text="If left blank, the OpenGraph title will be used.", + max_length=255, + null=True, + verbose_name="Twitter OpenGraph title", + ), + ), + migrations.AlterField( + model_name="peopleindexpage", + name="search_image", + field=models.ForeignKey( + blank=True, + help_text="Image that will appear when this page is shared on social media. This will default to the teaser image if left blank.", + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="+", + to="images.customimage", + verbose_name="OpenGraph image", + ), + ), + migrations.AlterField( + model_name="personpage", + name="search_image", + field=models.ForeignKey( + blank=True, + help_text="Image that will appear when this page is shared on social media. This will default to the teaser image if left blank.", + null=True, + on_delete=django.db.models.deletion.SET_NULL, + related_name="+", + to="images.customimage", + verbose_name="OpenGraph image", + ), + ), + ] diff --git a/etna/whatson/migrations/0012_eventpage_twitter_og_description_and_more.py b/etna/whatson/migrations/0012_eventpage_twitter_og_description_and_more.py index 6a43253ee..81cabf4ed 100644 --- a/etna/whatson/migrations/0012_eventpage_twitter_og_description_and_more.py +++ b/etna/whatson/migrations/0012_eventpage_twitter_og_description_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.8 on 2024-08-08 08:47 +# Generated by Django 5.0.8 on 2024-08-08 11:44 # etna:allowAlterField import django.db.models.deletion