summaryrefslogtreecommitdiff
path: root/sublab_project/projects/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/projects/models.py')
-rw-r--r--sublab_project/projects/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sublab_project/projects/models.py b/sublab_project/projects/models.py
index eb496bf..063734f 100644
--- a/sublab_project/projects/models.py
+++ b/sublab_project/projects/models.py
@@ -2,6 +2,7 @@ import datetime
from django.contrib.auth.models import User
from django.db import models
+from sorl.thumbnail import ImageField
from utils import render_creole
@@ -17,6 +18,7 @@ class Project(models.Model):
contact_email = models.EmailField('E-Mail', blank=True)
contact_url = models.URLField('URL', blank=True)
contact_user = models.ForeignKey(User, verbose_name='Ansprechpartner')
+ image = ImageField('Bild', upload_to='projects', blank=True)
date_created = models.DateTimeField('Erstellungsdatum', editable=False)
date_updated = models.DateTimeField('Aktualisierungsdatum', editable=False)