Commits

Sergey Maranchuk committed 548e408

change registration form to RegistrationFormUniqueEmail in basic_project

  • Participants
  • Parent commits 484f5a6

Comments (0)

Files changed (1)

File basic_project/urls.py

 from django.conf import settings
 from django.contrib import admin
 
+from django_authopenid.urls import urlpatterns as authopenid_urlpatterns
+from registration.forms import RegistrationFormUniqueEmail
+
+from djangobb_forum import settings as forum_settings
 from sitemap import SitemapForum, SitemapTopic
-from forms import RegistrationFormUtfUsername
-from djangobb_forum import settings as forum_settings
 
 
+for i, rurl in enumerate(authopenid_urlpatterns):
+    if rurl.name == 'registration_register':
+        authopenid_urlpatterns[i].default_args.update({'form_class': RegistrationFormUniqueEmail})
+        break
+
 admin.autodiscover()
 
 sitemaps = {