From 6218c712437257bd4ef63fd1f46fca506ac9bf80 Mon Sep 17 00:00:00 2001 From: Victor Miti Date: Tue, 19 Mar 2024 16:22:01 +0000 Subject: [PATCH] Fix default site name --- ...154_alter_socialmediasettings_site_name.py | 23 +++++++++++++++++++ tbx/core/utils/models.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tbx/core/migrations/0154_alter_socialmediasettings_site_name.py diff --git a/tbx/core/migrations/0154_alter_socialmediasettings_site_name.py b/tbx/core/migrations/0154_alter_socialmediasettings_site_name.py new file mode 100644 index 000000000..22cb7ff07 --- /dev/null +++ b/tbx/core/migrations/0154_alter_socialmediasettings_site_name.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.8 on 2024-03-19 16:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("torchbox", "0153_change_minimum_number_for_key_points"), + ] + + operations = [ + migrations.AlterField( + model_name="socialmediasettings", + name="site_name", + field=models.CharField( + blank=True, + default="Torchbox", + help_text="Site name, used by Open Graph.", + max_length=255, + ), + ), + ] diff --git a/tbx/core/utils/models.py b/tbx/core/utils/models.py index a59f4365e..9fc4c863b 100644 --- a/tbx/core/utils/models.py +++ b/tbx/core/utils/models.py @@ -45,6 +45,6 @@ class SocialMediaSettings(BaseSiteSetting): site_name = models.CharField( max_length=255, blank=True, - default="{{ cookiecutter.project_name }}", + default="Torchbox", help_text="Site name, used by Open Graph.", )