Fix the navbar icons path

This commit is contained in:
Rodolphe Breard 2018-06-02 14:48:21 +02:00
parent e9c325b41f
commit b444fe8c49
2 changed files with 19 additions and 1 deletions

View file

@ -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'),
),
]

View file

@ -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