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 /scipy/forms.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 'scipy/forms.py')
-rw-r--r-- | scipy/forms.py | 7 |
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'}), + } |