From b444fe8c49d97d41ee87f39095405a82c8898236 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 2 Jun 2018 14:48:21 +0200 Subject: [PATCH] Fix the navbar icons path --- navbar/migrations/0005_auto_20180602_1447.py | 18 ++++++++++++++++++ navbar/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 navbar/migrations/0005_auto_20180602_1447.py diff --git a/navbar/migrations/0005_auto_20180602_1447.py b/navbar/migrations/0005_auto_20180602_1447.py new file mode 100644 index 0000000..0f311c8 --- /dev/null +++ b/navbar/migrations/0005_auto_20180602_1447.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.6 on 2018-06-02 12:47 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('navbar', '0004_elementdescription_link_override'), + ] + + operations = [ + migrations.AlterField( + model_name='element', + name='icon', + field=models.FilePathField(blank=True, match='.png', null=True, path='navbar/static/navbar/icons'), + ), + ] diff --git a/navbar/models.py b/navbar/models.py index e5bac27..f5220bb 100644 --- a/navbar/models.py +++ b/navbar/models.py @@ -16,7 +16,7 @@ class Element(models.Model): new_window = models.BooleanField(default=False) add_locale = models.BooleanField(default=False) icon = models.FilePathField( - path=os.path.join(settings.BASE_DIR, 'navbar/static/navbar/icons'), + path='navbar/static/navbar/icons', match=".png", null=True, blank=True