Allow missing official image

This commit is contained in:
Aarni Halinen
2019-10-10 20:48:27 +03:00
parent 971247e67c
commit 09e973fab1
+1 -1
View File
@@ -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):