Registration not working anymore after update
Here is probably an easy one. After switching to using the djangoldp_account.LDPUser class, I am trying to register a new account through the /accounts/register/
URL.
I fill all fields and submit, and then I got this error:
Internal Server Error: /auth/register/
Traceback (most recent call last):
File "/home/balessan/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/balessan/.local/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/balessan/.local/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/balessan/.local/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/home/balessan/.local/lib/python3.6/site-packages/django_registration/views.py", line 36, in dispatch
return super(RegistrationView, self).dispatch(*args, **kwargs)
File "/home/balessan/.local/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "/home/balessan/.local/lib/python3.6/site-packages/django/views/generic/edit.py", line 182, in post
if form.is_valid():
File "/home/balessan/.local/lib/python3.6/site-packages/django/forms/forms.py", line 183, in is_valid
return self.is_bound and not self.errors
File "/home/balessan/.local/lib/python3.6/site-packages/django/forms/forms.py", line 175, in errors
self.full_clean()
File "/home/balessan/.local/lib/python3.6/site-packages/django/forms/forms.py", line 386, in full_clean
self._post_clean()
File "/home/balessan/.local/lib/python3.6/site-packages/django/forms/models.py", line 413, in _post_clean
self.instance.full_clean(exclude=exclude, validate_unique=False)
File "/home/balessan/.local/lib/python3.6/site-packages/django/db/models/base.py", line 1235, in full_clean
self.clean()
File "/home/balessan/.local/lib/python3.6/site-packages/django/contrib/auth/models.py", line 349, in clean
self.email = self.__class__.objects.normalize_email(self.email)
File "/home/balessan/.local/lib/python3.6/site-packages/django/db/models/manager.py", line 198, in __get__
cls._meta.swapped,
AttributeError: Manager isn't available; 'auth.User' has been swapped for 'djangoldp_account.LDPUser'
[02/Oct/2019 21:48:33] "POST /auth/register/ HTTP/1.1" 500 116565