From b6fe4b3f35a7fb31ccf7a8d12f3f10b812f27971 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Thu, 13 Aug 2020 23:06:22 +0200
Subject: [PATCH] bugfix: fix typo in RegistrationView name

---
 djangoldp_account/djangoldp_urls.py | 4 ++--
 djangoldp_account/views.py          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/djangoldp_account/djangoldp_urls.py b/djangoldp_account/djangoldp_urls.py
index aa1f1de..41b2f8b 100644
--- a/djangoldp_account/djangoldp_urls.py
+++ b/djangoldp_account/djangoldp_urls.py
@@ -10,7 +10,7 @@ from djangoldp.views import LDPViewSet
 from djangoldp_account.forms import LDPUserForm
 from .models import ChatProfile, Account
 from .views import userinfocustom, RPLoginView, RPLoginCallBackView, check_user, LDPAccountLoginView, RedirectView, \
-    LDPAccountRegsitrationView
+    LDPAccountRegistrationView
 
 Group._meta.serializer_fields = ['name']
 Group._meta.anonymous_perms = getattr(settings, 'GROUP_ANONYMOUS_PERMISSIONS', ['view'])
@@ -24,7 +24,7 @@ urlpatterns = [
         )
     ),
     url(r'^auth/register/$',
-        LDPAccountRegsitrationView.as_view(
+        LDPAccountRegistrationView.as_view(
             form_class=LDPUserForm
         ),
         name='django_registration_register',
diff --git a/djangoldp_account/views.py b/djangoldp_account/views.py
index 7cea238..1cab689 100644
--- a/djangoldp_account/views.py
+++ b/djangoldp_account/views.py
@@ -122,7 +122,7 @@ class LDPAccountLoginView(LoginView):
         return return_value
 
 
-class LDPAccountRegsitrationView(SuccessURLAllowedHostsMixin, RegistrationView):
+class LDPAccountRegistrationView(SuccessURLAllowedHostsMixin, RegistrationView):
     """
     Extension of django-registration's RegistrationView for managing user's default_redirect_uri
     """
@@ -147,7 +147,7 @@ class LDPAccountRegsitrationView(SuccessURLAllowedHostsMixin, RegistrationView):
         return context
 
     def post(self, request, *args, **kwargs):
-        return_value = super(LDPAccountRegsitrationView, self).post(request, *args, **kwargs)
+        return_value = super(LDPAccountRegistrationView, self).post(request, *args, **kwargs)
 
         # if the user has 'next' set which is not default, update their preference
         next = request.POST.get('next', '')
-- 
GitLab