Files @ 4d0611e71bfe
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/proposals/

Josh Simmons
Merge pull request #31 from northbaypython/josh/copy

add (most) bios, refine news, and more <3 for SFC
from django import forms

from .models import TalkProposal

class ProposalForm(forms.ModelForm):

    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):

    class Meta:
        model = TalkProposal
        fields = [