diff options
author | Komal Sheth | 2016-10-06 17:56:25 +0530 |
---|---|---|
committer | GitHub | 2016-10-06 17:56:25 +0530 |
commit | 03a777ee0a033e1a739aa5febba400d2e6b3b13a (patch) | |
tree | 2c135ce8ef69d21f408cbbb71fd6e997529c012d /website/forms.py | |
parent | b60bbc2181f03ffd5fabc7781c8b8cbf3aa794c0 (diff) | |
parent | 84db35fa4eccb0935e0bf53cca53fa7dec18f61a (diff) | |
download | SciPy2016-03a777ee0a033e1a739aa5febba400d2e6b3b13a.tar.gz SciPy2016-03a777ee0a033e1a739aa5febba400d2e6b3b13a.tar.bz2 SciPy2016-03a777ee0a033e1a739aa5febba400d2e6b3b13a.zip |
Merge pull request #26 from FOSSEE/Home_page
Home page
Diffstat (limited to 'website/forms.py')
-rwxr-xr-x | website/forms.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/website/forms.py b/website/forms.py index 392d6e2..fdf6bc2 100755 --- a/website/forms.py +++ b/website/forms.py @@ -111,11 +111,6 @@ class ProposalForm(forms.ModelForm): raise forms.ValidationError('File size exceeds 5MB') return attachment - # def clean_abstract(self): - # about_me = self.cleaned_data['abstract'] - # if len(about_me) < 300: - # raise forms.ValidationError("Abstract me should contain min. 300 characteres") - class WorkshopForm(forms.ModelForm): about_me = forms.CharField(widget=forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'About Me'}), @@ -150,12 +145,6 @@ class WorkshopForm(forms.ModelForm): model = Proposal exclude = ('user', 'email','status','rate') - def clean_title(self): - title = self.cleaned_data['title'] - if Proposal.objects.filter(title=title).exists(): - raise forms.ValidationError("This title already exist.") - return title - def clean_attachment(self): import os cleaned_data = self.cleaned_data |