summaryrefslogtreecommitdiff
path: root/project/kiwipycon/proceedings/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'project/kiwipycon/proceedings/models.py')
-rw-r--r--project/kiwipycon/proceedings/models.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/project/kiwipycon/proceedings/models.py b/project/kiwipycon/proceedings/models.py
index e63dff6..5a76503 100644
--- a/project/kiwipycon/proceedings/models.py
+++ b/project/kiwipycon/proceedings/models.py
@@ -9,6 +9,25 @@ class Paper(models.Model):
"""Data model for storing proceedings paper.
"""
+ # Title of the paper
title = models.CharField(max_length=200)
+
+ # Abstract to be published with the paper
abstract = models.TextField()
+
+ # Body text of the paper
body = models.TextField()
+
+ # Authors
+ authors = models.ManyToManyField(User)
+
+
+class Attachments(models.Model):
+ """Stores attachments for papers.
+ """
+
+ # Attachment for generating paper
+ attachments = models.FileField(upload_to='attachments/%Y/%m/%d')
+
+ # The paper to which this attachment belongs to
+ paper = models.ForeignKey(Paper)