From fd62d22cbbb218099e6ac253d8752f8416706310 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 10 Feb 2020 19:02:45 +0300 Subject: [PATCH] fix --- bots/modules/overlay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/overlay.py b/bots/modules/overlay.py index 57abac7..d054f21 100644 --- a/bots/modules/overlay.py +++ b/bots/modules/overlay.py @@ -68,7 +68,7 @@ class OverlayImage(models.Model): class ImageForm(forms.ModelForm): - image = forms.ImageField(widget=forms.ClearableFileInput(attrs={'accept': 'image/png'})) + image = forms.ImageField(widget=forms.ClearableFileInput(attrs={'accept': 'image/png'}), required=False) class Meta: model = OverlayImage