Home | Trees | Indices | Help |
---|
|
1 #!/usr/bin/python 2 from registration.forms import RegistrationForm 3 from django import forms 4 5 attrs_dict = { 6 'class': 'required', 7 # 'onchange':'alert("check your self, fool");' 8 } 911 username = forms.RegexField(regex=r'^\w+$', 12 max_length=30, 13 widget=forms.TextInput(attrs=attrs_dict), 14 label="Username", 15 error_messages={'invalid': "Username can contain only letters, numbers or underscores (spaces are not permitted)."})16
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Oct 30 11:31:05 2012 | http://epydoc.sourceforge.net |