Skip to content

Instantly share code, notes, and snippets.

@binarymatt
Forked from commadelimited/field.py
Created November 28, 2012 20:57
Show Gist options
  • Save binarymatt/4164429 to your computer and use it in GitHub Desktop.
Save binarymatt/4164429 to your computer and use it in GitHub Desktop.
Widget form field
trial_length = forms.IntegerField(widget=forms.TextInput(attrs={'size': '3', 'maxlength': '2'}), label='Number of days in Trial period', required=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment