diff --git a/djangoldp_account/djangoldp_urls.py b/djangoldp_account/djangoldp_urls.py index 27693d93702cde0753938e409f5077b2e67ac21a..e4e6fbb78e6ce405c67728e5592570dd28396156 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 579057c97b53af80b60574cc8c0bffedf623bf9d..323da77332822342ba145ab95a27e9d183b45b8b 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 26e397e33a9d89a4bc37699b8474526a6801369a..954877e963cb080cbce9aa14e1adf13223ca6a0e 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', '')