Commit 790a7e8e authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Fixed issue with images, now using external img-src

parent ed629e30
Pipeline #114770 passed with stage
in 29 seconds
# Generated by Django 3.1 on 2021-03-08 17:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facilities', '0002_auto_20210225_1508'),
]
operations = [
migrations.AlterField(
model_name='facility',
name='image1',
field=models.CharField(max_length=2048),
),
migrations.AlterField(
model_name='facility',
name='image2',
field=models.CharField(max_length=2048),
),
migrations.AlterField(
model_name='facility',
name='image3',
field=models.CharField(max_length=2048),
),
migrations.AlterField(
model_name='facility',
name='image4',
field=models.CharField(max_length=2048),
),
migrations.AlterField(
model_name='facility',
name='image5',
field=models.CharField(max_length=2048),
),
]
......@@ -49,11 +49,12 @@ class Facility(models.Model):
longitude = models.DecimalField(
decimal_places=5, max_digits=8, validators=[MaxValueValidator(180), MinValueValidator(-180)])
image1 = models.ImageField(validators=[image_size], upload_to=facility_directory_path)
image2 = models.ImageField(validators=[image_size], upload_to=facility_directory_path, blank=True)
image3 = models.ImageField(validators=[image_size], upload_to=facility_directory_path, blank=True)
image4 = models.ImageField(validators=[image_size], upload_to=facility_directory_path, blank=True)
image5 = models.ImageField(validators=[image_size], upload_to=facility_directory_path, blank=True)
image1 = models.CharField(max_length=2048)
image2 = models.CharField(max_length=2048)
image3 = models.CharField(max_length=2048)
image4 = models.CharField(max_length=2048)
image5 = models.CharField(max_length=2048)
class Meta:
ordering = ["-date"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment