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