From 8398b53311d366486463507eb8f249a0b35cb4b0 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Fri, 22 May 2020 16:38:22 +0200
Subject: [PATCH] Fixing the LDPAccountRegistrationView name

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

diff --git a/djangoldp_account/djangoldp_urls.py b/djangoldp_account/djangoldp_urls.py
index 27693d9..e4e6fbb 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/models.py b/djangoldp_account/models.py
index 579057c..323da77 100644
--- a/djangoldp_account/models.py
+++ b/djangoldp_account/models.py
@@ -13,8 +13,6 @@ from django.urls import reverse_lazy
 from django.utils.deconstruct import deconstructible
 from django.utils.translation import ugettext_lazy as _
 from importlib import import_module
-
-
 from djangoldp.models import Model
 
 from djangoldp.permissions import LDPPermissions
diff --git a/djangoldp_account/views.py b/djangoldp_account/views.py
index 26e397e..954877e 100644
--- a/djangoldp_account/views.py
+++ b/djangoldp_account/views.py
@@ -114,7 +114,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
     """
@@ -139,7 +139,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