Changeset 235:a8431b70960c
Legend:
- Unmodified
- Added
- Removed
-
djangobb/forms.py
r234 r235 10 10 def __init__(self, *args, **kwargs): 11 11 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) 13 13 -
djangobb/urls.py
r211 r235 7 7 from forms import RegistrationFormUtfUsername 8 8 9 #Hack for add default_params with RegistrationFormUtfUsername to registration urlpattern 9 # HACK for add default_params with RegistrationFormUtfUsername and backend to registration urlpattern 10 # Must be changed after django-authopenid #50 (signup-page-does-not-work-whih-django-registration) 11 # will be fixed 10 12 from django_authopenid.urls import urlpatterns as authopenid_urlpatterns 11 13 for i, rurl in enumerate(authopenid_urlpatterns): 12 14 if rurl.name == 'registration_register': 13 authopenid_urlpatterns[i].default_args = {'form_class': RegistrationFormUtfUsername} 14 break 15 authopenid_urlpatterns[i].default_args = {'form_class': RegistrationFormUtfUsername, 16 'backend': 'registration.backends.default.DefaultBackend'} 17 elif rurl.name == 'registration_activate': 18 authopenid_urlpatterns[i].default_args = {'backend': 'registration.backends.default.DefaultBackend'} 15 19 16 20 admin.autodiscover()
Note: See TracChangeset
for help on using the changeset viewer.
