[Django] #37121: pylance unable to find `django.contrib.auth.forms.AdminUserCreationForm`

2 views
Skip to first unread message

Django

unread,
May 27, 2026, 8:38:18 PM (3 days ago) May 27
to django-...@googlegroups.com
#37121: pylance unable to find `django.contrib.auth.forms.AdminUserCreationForm`
---------------------------+----------------------------------------
Reporter: JustBipin | Type: Bug
Status: new | Component: contrib.auth
Version: 6.0 | Severity: Normal
Keywords: import | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+----------------------------------------
all other objects in django.contrib.auth.forms.py are properly detected by
pylance, but not AdminUserCreationform.

when i try to import the classes in this file, the editor gives me options
of all files except `AdminUserCreationForm` .
typing `admin` suggests `adminpasswordchangeform` but not
'adminusercreationfor

I'm sorry if my ticket is not following conventions or is not that
descriptive. I'm new to opensource, it seems particularly hard to issue
bugs in django.
I also don't know if it's a easy picking.
--
Ticket URL: <https://code.djangoproject.com/ticket/37121>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 28, 2026, 9:00:24 AM (2 days ago) May 28
to django-...@googlegroups.com
#37121: pylance unable to find `django.contrib.auth.forms.AdminUserCreationForm`
------------------------------+--------------------------------------
Reporter: Bipin Thapa | Owner: (none)
Type: Bug | Status: closed
Component: contrib.auth | Version: 6.0
Severity: Normal | Resolution: needsinfo
Keywords: import | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Tim Graham):

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

Comment:

We would need an explanation of why Django is at fault. I don't see any
difference between `AdminUserCreationForm` and the other classes. In case
you're using an older version, `AdminUserCreationForm` is new in Django
5.1.1.
--
Ticket URL: <https://code.djangoproject.com/ticket/37121#comment:1>
Reply all
Reply to author
Forward
0 new messages