#34252: Doc page "Using the Django authentication system" shows failing example
-------------------------------+--------------------------------------
     Reporter:  jdreo          |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Documentation  |                  Version:  3.2
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 > `AttributeError: Manager isn't available; 'auth.User' has been swapped
 for 'core.User'`

 Your project is using a
 [https://docs.djangoproject.com/en/4.1/topics/auth/customizing#substituting-a
 -custom-user-model custom user model].

 The example passes as given when using the default user (in a fresh
 project created with `startproject`, for example).

 {{{
 >>> from django.contrib.auth.models import User
 >>> user = User.objects.create_user('john', '[email protected]',
 'johnpassword')
 >>> user
 <User: john>
 }}}


 Please see TicketClosingReasons/UseSupportChannels if you need further
 clarification.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34252#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070185a1322296-b8edea88-4e51-4548-85a6-a73859d25465-000000%40eu-central-1.amazonses.com.

Reply via email to