Created
April 8, 2014 16:57
-
-
Save kerin/10155747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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