From 449ae21818f09f2f857ed021d8bcb1ebe5792369 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 11 Nov 2023 23:02:48 +0100 Subject: [PATCH] Do not allow logo with empty image --- cms/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/models.py b/cms/models.py index 1c7296f4..46cb1360 100644 --- a/cms/models.py +++ b/cms/models.py @@ -3,8 +3,8 @@ from django.core.exceptions import ValidationError from django.db import models from django.utils.timezone import now -from base.models import RestrictedFileField +from base.models import RestrictedFileField from competition.models import Event, Series from .querysets import VisibilityQuerySet @@ -127,7 +127,7 @@ class Meta: image = RestrictedFileField( content_types=['image/svg+xml', 'image/png'], upload_to='logo_images/', - verbose_name='Logo', null=True, blank=True) + verbose_name='Logo') class InfoBanner(ModelWithVisibility):