diff options
author | hardythe1 | 2013-10-14 15:30:14 +0530 |
---|---|---|
committer | hardythe1 | 2013-10-14 15:30:14 +0530 |
commit | 17bfc6009b872badccf1f5db99c54741919a6b50 (patch) | |
tree | 57815b36fa498e32b4d881970806c9468050f786 /website/models.py | |
parent | c0c25ce189b4c749de0a695ae7d9b273bc499e98 (diff) | |
download | SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.gz SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.bz2 SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.zip |
updating model to store required fields for proposal
Diffstat (limited to 'website/models.py')
-rw-r--r-- | website/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/website/models.py b/website/models.py index b95e81a..158c073 100644 --- a/website/models.py +++ b/website/models.py @@ -9,5 +9,11 @@ def get_presentation_dir(instance, filename): class Paper(models.Model): user = models.ForeignKey(User) - document = models.FileField(upload_to=get_document_dir) + title = models.CharField(max_length=250) + affiliation = models.CharField(max_length=250) + objective = models.CharField(max_length=512) + abstract = models.TextField(max_length=700) + bio = models.TextField(max_length=500) + links = models.CharField(max_length=128) + attachments = models.FileField(upload_to=get_document_dir) verified = models.NullBooleanField() |