Skip to content

Commit

Permalink
Do not allow logo with empty image
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 11, 2023
1 parent 1206a27 commit 449ae21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 449ae21

Please sign in to comment.