Package madrona :: Package common :: Package registration_backend :: Module forms
[hide private]

Source Code for Module madrona.common.registration_backend.forms

 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  } 
 9   
10 -class MadronaRegistrationForm(RegistrationForm):
11 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