From 93738bb48c91e613b0074dd531d4256a42503d64 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 5 Oct 2020 14:42:15 -0700 Subject: [PATCH] Uses fixed string as site name The domain is *better* but it was causing the makemigrations to trigger whenever the domain name in .env changes, which is a real hassle with a free version of ngrok --- bookwyrm/migrations/0051_auto_20201005_2142.py | 18 ++++++++++++++++++ bookwyrm/models/site.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 bookwyrm/migrations/0051_auto_20201005_2142.py diff --git a/bookwyrm/migrations/0051_auto_20201005_2142.py b/bookwyrm/migrations/0051_auto_20201005_2142.py new file mode 100644 index 00000000..f25f77d7 --- /dev/null +++ b/bookwyrm/migrations/0051_auto_20201005_2142.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.7 on 2020-10-05 21:42 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bookwyrm', '0050_auto_20201002_2156'), + ] + + operations = [ + migrations.AlterField( + model_name='sitesettings', + name='name', + field=models.CharField(default='BookWyrm', max_length=100), + ), + ] diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index fbf789a0..24eb673c 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -11,7 +11,7 @@ from .user import User class SiteSettings(models.Model): ''' customized settings for this instance ''' - name = models.CharField(default=DOMAIN, max_length=100) + name = models.CharField(default='BookWyrm', max_length=100) instance_description = models.TextField( default="This instance has no description.") code_of_conduct = models.TextField(