summaryrefslogtreecommitdiff
path: root/website/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'website/forms.py')
-rwxr-xr-xwebsite/forms.py11
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