Changeset - b39136615cff
[Not reviewed]
0 1 0
Christopher Neugebauer - 7 years ago 2017-08-20 01:36:51
chrisjrn@gmail.com
Fixes a message in the proposals form
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pinaxcon/proposals/forms.py
Show inline comments
...
 
@@ -20,24 +20,31 @@ class ConferenceSpeakerForm(forms.ModelForm):
 
    def __init__(self, *a, **k):
 
        super(ConferenceSpeakerForm, self).__init__(*a, **k)
 
        self.fields['code_of_conduct'].required = True
 

	
 

	
 

	
 
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"
 
            )
 
        return value
 

	
 

	
 
class TalkProposalForm(ProposalForm):
 

	
0 comments (0 inline, 0 general)