[extensions-web] registration: reflect django_registration 3.0 changes



commit 7f6cc55e7112116ddd2a4c5b137e32f0802af3c8
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Nov 24 00:16:27 2019 +0400

    registration: reflect django_registration 3.0 changes
    
    registration_registrationprofile table should be dropped manually after
    producation site upgrade.

 .../{activation_email.txt => activation_email_body.txt}                 | 0
 .../django_registration/{activate.html => activation_failed.html}       | 0
 sweettooth/auth/urls.py                                                 | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sweettooth/auth/templates/django_registration/activation_email.txt 
b/sweettooth/auth/templates/django_registration/activation_email_body.txt
similarity index 100%
rename from sweettooth/auth/templates/django_registration/activation_email.txt
rename to sweettooth/auth/templates/django_registration/activation_email_body.txt
diff --git a/sweettooth/auth/templates/django_registration/activate.html 
b/sweettooth/auth/templates/django_registration/activation_failed.html
similarity index 100%
rename from sweettooth/auth/templates/django_registration/activate.html
rename to sweettooth/auth/templates/django_registration/activation_failed.html
diff --git a/sweettooth/auth/urls.py b/sweettooth/auth/urls.py
index 0361df6..1ae8dcd 100644
--- a/sweettooth/auth/urls.py
+++ b/sweettooth/auth/urls.py
@@ -1,7 +1,7 @@
 
 from django.views.generic.base import TemplateView
 from django.conf.urls import url, include
-from django_registration.views import RegistrationView
+from django_registration.backends.activation.views import RegistrationView
 from django.contrib.auth import views as auth_views
 from django.contrib.auth.views import LoginView, LogoutView
 from django.urls import reverse_lazy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]