File diff 9a32b8ce79da → e2618f812ecc
pinaxcon/proposals/forms.py
Show inline comments
...
 
@@ -26,12 +26,19 @@ class ConferenceSpeakerForm(forms.ModelForm):
 
class ProposalForm(forms.ModelForm, ProposalMixIn):
 

	
 
    def __init__(self, *a, **k):
 
        super(ProposalForm, self).__init__(*a, **k)
 
        self.description_required()
 
        self.abstract_required()
 
        self.fields["additional_notes"].help_text = ("Anything else "
 
            "you'd like the program committee to know when making their "
 
            "selection. This is not made public. "
 
            "Edit using "
 
            "<a href='http://daringfireball.net/projects/markdown/basics' "
 
            "target='_blank'>Markdown</a>.")
 

	
 

	
 
    def clean_description(self):
 
        value = self.cleaned_data["description"]
 
        if len(value) > 400:
 
            raise forms.ValidationError(
 
                u"The description must be less than 400 characters"