Ignore:
Timestamp:
02.02.2010 12:54:37 (2 years ago)
Author:
slav0nic <slav0nic0@…>
Branch:
default
Message:

added hack for latest django-registration 0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • djangobb/forms.py

    r234 r235  
    1010    def __init__(self, *args, **kwargs): 
    1111        super(RegistrationFormUtfUsername, self).__init__(*args, **kwargs) 
    12         self.fields['username'].regex = re.compile(r"^[\w- ]+$", re.UNICODE) 
     12        self.fields['username'].regex = re.compile(r"^[\w\s-]+$", re.UNICODE) 
    1313 
Note: See TracChangeset for help on using the changeset viewer.