Fix the navbar icons path
This commit is contained in:
parent
e9c325b41f
commit
b444fe8c49
2 changed files with 19 additions and 1 deletions
18
navbar/migrations/0005_auto_20180602_1447.py
Normal file
18
navbar/migrations/0005_auto_20180602_1447.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -16,7 +16,7 @@ class Element(models.Model):
|
||||||
new_window = models.BooleanField(default=False)
|
new_window = models.BooleanField(default=False)
|
||||||
add_locale = models.BooleanField(default=False)
|
add_locale = models.BooleanField(default=False)
|
||||||
icon = models.FilePathField(
|
icon = models.FilePathField(
|
||||||
path=os.path.join(settings.BASE_DIR, 'navbar/static/navbar/icons'),
|
path='navbar/static/navbar/icons',
|
||||||
match=".png",
|
match=".png",
|
||||||
null=True,
|
null=True,
|
||||||
blank=True
|
blank=True
|
||||||
|
|
Loading…
Reference in a new issue