diff --git a/djangoldp_account/djangoldp_urls.py b/djangoldp_account/djangoldp_urls.py index aa1f1de5b83c8b1ceb6b924ff1947b5c77a8344a..41b2f8bedbac5c134ef94bffa6e530295ca761e7 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 7cea2387136a73211d8c0ec3384cb6490e068d05..1cab689264193a2feb3679adb6b9167b121215e3 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', '')