summaryrefslogtreecommitdiff
path: root/scipy/forms.py
diff options
context:
space:
mode:
authorhardythe12013-10-14 15:30:14 +0530
committerhardythe12013-10-14 15:30:14 +0530
commit17bfc6009b872badccf1f5db99c54741919a6b50 (patch)
tree57815b36fa498e32b4d881970806c9468050f786 /scipy/forms.py
parentc0c25ce189b4c749de0a695ae7d9b273bc499e98 (diff)
downloadSciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.gz
SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.bz2
SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.zip
updating model to store required fields for proposal
Diffstat (limited to 'scipy/forms.py')
-rw-r--r--scipy/forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scipy/forms.py b/scipy/forms.py
index a1e9e61..77c2b96 100644
--- a/scipy/forms.py
+++ b/scipy/forms.py
@@ -30,7 +30,12 @@ class UserProfileForm(UserChangeForm):
fields = ('first_name', 'last_name', 'email', 'username')
class DocumentUploadForm(forms.ModelForm):
-
class Meta:
model = Paper
exclude = ('user', 'verified')
+ widgets = {
+ 'title':forms.TextInput(attrs={'placeholder':'Title of your Talk'}),
+ 'objective':forms.TextInput(attrs={'placeholder':'Objective of the talk'}),
+ 'abstract':forms.Textarea(attrs={'placeholder':'Abstract in 400 to 700 '}),
+ 'links':forms.TextInput(attrs={'placeholder':'Link to the code (if any) or relevant links'}),
+ }