Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#31108 closed Bug (duplicate)

Manager isn't available; User has been swapped for 'myuser.MyUser' - again

Reported by: Man Python Owned by: nobody
Component: contrib.auth Version: 2.2
Severity: Release blocker Keywords: Manager, User, forms
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Regarding this ticket
https://code.djangoproject.com/ticket/21616
on v.2.2.6 django this problem still exist
For example in usage of django_registration or django-rest-authemail this isse exist
https://github.com/celiao/django-rest-authemail/issues/7#issuecomment-568006319
There is sugestion to use get_user_model but is not sense due that this function exist in django_registration eg.
https://github.com/ubernostrum/django-registration/blob/master/src/django_registration/forms.py #line 20

Change History (3)

comment:1 by Claude Paroz, 5 years ago

Resolution: duplicate
Status: newclosed

Please do not use this ticket tracker as a support channel. You could for example try to explain your problem on the Django forums.

See https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

in reply to:  1 comment:2 by Man Python, 5 years ago

Replying to Claude Paroz:

Please do not use this ticket tracker as a support channel. You could for example try to explain your problem on the Django forums.

See https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

I'm not sure that I need support.
Just check.. the error is in 2 cases

  1. If the stack with url fifo is in this way:
    url(r'^accounts/', include('django_registration.backends.activation.urls')),
    url(r'^accounts/register/', RegistrationView.as_view(form_class=RegistrationForm), name='register'),
  1. If in this way is ok, but fork not recognize account if not accounts and the account/register/complete/ not working (similar problem in case 1)
    url(r'^account/register/', RegistrationView.as_view(form_class=RegistrationForm), name='register'),
    url(r'^account/', include('django_registration.backends.activation.urls')),

There is no description in details how to use, so users don't know whats is wrong here and the error doing missunderstanding coz is no any case related with the title error and Manager, just url.

Last edited 5 years ago by Man Python (previous) (diff)

comment:3 by Claude Paroz, 5 years ago

Maybe you could report the issue against django-registration. But without a traceback, we don't even know which part of the code is problematic.

Note: See TracTickets for help on using tickets.
Back to Top