Commit 2bf9817b authored by Aymeric Barantal's avatar Aymeric Barantal

add a photo field to contact, add pillow as dependency

parent fc55cd4e
......@@ -9,6 +9,7 @@ class Contact(models.Model):
phone = models.CharField(max_length=32)
twitter = models.CharField(max_length=64, blank=True)
mail = models.CharField(max_length=255, blank=True)
photo = models.ImageField(upload_to='contacts/photos', blank=True)
def __unicode__(self):
return '%s %s' % (self.first_name, self.last_name)
......@@ -9,6 +9,7 @@ requires = [
'django',
'djangorestframework',
'drf-nested-routers',
'pillow',
]
setup(name='picampaign',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment