Add images to Officials

This commit is contained in:
Aarni Halinen
2019-10-10 19:06:48 +03:00
parent 86af724ccc
commit 59dcb382ce
3 changed files with 20 additions and 1 deletions
+1
View File
@@ -220,6 +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)
@staticmethod
def by_year(year):