project/kiwipycon/proceedings/models.py
changeset 87 1ec579a679e4
parent 84 d01c62c2a628
--- a/project/kiwipycon/proceedings/models.py	Thu Jan 14 19:19:12 2010 +0530
+++ b/project/kiwipycon/proceedings/models.py	Thu Jan 14 19:19:34 2010 +0530
@@ -9,6 +9,25 @@
     """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)