From 16cc7415c145be828966b9b86a24cdc95e0c336e Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:23:44 -0800 Subject: [PATCH] Fix missed migration for app_logo --- .../0002_applicationconfiguration_app_logo_and_more.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/paperless/migrations/0002_applicationconfiguration_app_logo_and_more.py b/src/paperless/migrations/0002_applicationconfiguration_app_logo_and_more.py index e6960d1a6..c68a5b650 100644 --- a/src/paperless/migrations/0002_applicationconfiguration_app_logo_and_more.py +++ b/src/paperless/migrations/0002_applicationconfiguration_app_logo_and_more.py @@ -1,5 +1,6 @@ # Generated by Django 4.2.9 on 2024-01-12 05:33 +import django.core.validators from django.db import migrations from django.db import models @@ -16,7 +17,12 @@ class Migration(migrations.Migration): field=models.FileField( blank=True, null=True, - upload_to="", + upload_to="logo/", + validators=[ + django.core.validators.FileExtensionValidator( + allowed_extensions=["jpg", "png", "gif", "svg"], + ), + ], verbose_name="Application logo", ), ),