From 09e973fab1198fdeb4885974cd379cbf601149c2 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Thu, 10 Oct 2019 20:48:27 +0300 Subject: [PATCH] Allow missing official image --- webapp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/models.py b/webapp/models.py index 7676bf3..520af45 100644 --- a/webapp/models.py +++ b/webapp/models.py @@ -220,7 +220,7 @@ class Official(models.Model): email = models.EmailField(_('Email address')) phone_number = PhoneNumberField(_('Phone number')) role_history = models.ManyToManyField('Occupation', 'officials', blank=True) - image = models.ImageField(null=True) + image = models.ImageField(blank=True, null=True) @staticmethod def by_year(year):