diff --git a/umap/migrations/0015_alter_pictogram_pictogram.py b/umap/migrations/0015_alter_pictogram_pictogram.py new file mode 100644 index 00000000..9e60a3c4 --- /dev/null +++ b/umap/migrations/0015_alter_pictogram_pictogram.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.2 on 2023-10-30 11:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("umap", "0014_map_created_at"), + ] + + operations = [ + migrations.AlterField( + model_name="pictogram", + name="pictogram", + field=models.FileField(upload_to="pictogram"), + ), + ] diff --git a/umap/models.py b/umap/models.py index b2d1a9a6..40588399 100644 --- a/umap/models.py +++ b/umap/models.py @@ -284,7 +284,7 @@ class Pictogram(NamedModel): """ attribution = models.CharField(max_length=300) - pictogram = models.ImageField(upload_to="pictogram") + pictogram = models.FileField(upload_to="pictogram") @property def json(self):