Skip to content

Instantly share code, notes, and snippets.

@kerin
Created April 8, 2014 16:57
Show Gist options
  • Save kerin/10155747 to your computer and use it in GitHub Desktop.
Save kerin/10155747 to your computer and use it in GitHub Desktop.
default_errors = {
'required': _('CANNOT_BE_BLANK'),
'invalid': _('Enter a valid value'),
}
class YourProblemForm(CheckerWizardMixin, forms.Form):
"""
Gets the problem choices from the backend API.
"""
form_tag = 'your_problem'
your_problem_notes = forms.CharField(
required=False, max_length=500,
label=_(u'Please give us any additional details about your problem that may be relevant'),
widget=forms.Textarea(attrs={'rows': 5, 'cols': 80})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment