diff --git a/bookwyrm/migrations/0023_auto_20201213_0014.py b/bookwyrm/migrations/0031_auto_20210104_2040.py similarity index 53% rename from bookwyrm/migrations/0023_auto_20201213_0014.py rename to bookwyrm/migrations/0031_auto_20210104_2040.py index efff4388..604392d4 100644 --- a/bookwyrm/migrations/0023_auto_20201213_0014.py +++ b/bookwyrm/migrations/0031_auto_20210104_2040.py @@ -1,4 +1,4 @@ -# Generated by Django 3.0.7 on 2020-12-13 00:14 +# Generated by Django 3.0.7 on 2021-01-04 20:40 from django.db import migrations, models @@ -6,23 +6,23 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('bookwyrm', '0022_auto_20201212_1744'), + ('bookwyrm', '0030_auto_20201224_1939'), ] operations = [ migrations.AddField( model_name='sitesettings', name='favicon', - field=models.ImageField(default='/static/images/favicon.ico', upload_to='static/images/'), + field=models.ImageField(blank=True, null=True, upload_to='logos/'), ), migrations.AddField( model_name='sitesettings', name='logo', - field=models.ImageField(default='/static/images/logo.png', upload_to='static/images/'), + field=models.ImageField(blank=True, null=True, upload_to='logos/'), ), migrations.AddField( model_name='sitesettings', name='logo_small', - field=models.ImageField(default='/static/images/logo-small.png', upload_to='static/images/'), + field=models.ImageField(blank=True, null=True, upload_to='logos/'), ), ] diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index bf046c77..f20be7ba 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -18,16 +18,13 @@ class SiteSettings(models.Model): default="Add a code of conduct here.") allow_registration = models.BooleanField(default=True) logo = models.ImageField( - upload_to='static/images/', - default='/static/images/logo.png' + upload_to='logos/', null=True, blank=True ) logo_small = models.ImageField( - upload_to='static/images/', - default='/static/images/logo-small.png' + upload_to='logos/', null=True, blank=True ) favicon = models.ImageField( - upload_to='static/images/', - default='/static/images/favicon.ico' + upload_to='logos/', null=True, blank=True ) support_link = models.CharField(max_length=255, null=True, blank=True) support_title = models.CharField(max_length=100, null=True, blank=True) diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index a2565840..b11ed7fe 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -8,20 +8,23 @@ - + - - + + + + + +
-