diff --git a/cookbook/migrations/0017_auto_20200216_2257.py b/cookbook/migrations/0017_auto_20200216_2257.py new file mode 100644 index 00000000..4a16fbb6 --- /dev/null +++ b/cookbook/migrations/0017_auto_20200216_2257.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.2 on 2020-02-16 21:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0016_auto_20200213_2335'), + ] + + operations = [ + migrations.AlterField( + model_name='userpreference', + name='theme', + field=models.CharField(choices=[('BOOTSTRAP', 'Bootstrap'), ('DARKLY', 'Darkly'), ('FLATLY', 'Flatly'), ('SUPERHERO', 'Superhero')], default='FLATLY', max_length=128), + ), + ] diff --git a/cookbook/models.py b/cookbook/models.py index 5b706ab0..2bdd41ca 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -12,7 +12,7 @@ class UserPreference(models.Model): THEMES = ((BOOTSTRAP, 'Bootstrap'), (DARKLY, 'Darkly'), (FLATLY, 'Flatly'), (SUPERHERO, 'Superhero')) user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True) - theme = models.CharField(choices=THEMES, max_length=128, default=BOOTSTRAP) + theme = models.CharField(choices=THEMES, max_length=128, default=FLATLY) class Storage(models.Model): diff --git a/cookbook/templatetags/theming_tags.py b/cookbook/templatetags/theming_tags.py index 0dc96e82..2c1535b2 100644 --- a/cookbook/templatetags/theming_tags.py +++ b/cookbook/templatetags/theming_tags.py @@ -20,7 +20,7 @@ def theme_url(request): else: raise AttributeError except AttributeError: - return static('themes/bootstrap.min.css') + return static('themes/flatly.min.css') @register.simple_tag diff --git a/preview.png b/preview.png index b92d25c7..de15e167 100644 Binary files a/preview.png and b/preview.png differ diff --git a/preview.xcf b/preview.xcf index 75122fc5..bf80cf38 100644 Binary files a/preview.xcf and b/preview.xcf differ