Re: [Django] #33613: createsuperuser does not validate usernames that use a UniqueConstraint.

6 views
Skip to first unread message

Django

unread,
Mar 31, 2022, 8:38:05 AM3/31/22
to django-...@googlegroups.com
#33613: createsuperuser does not validate usernames that use a UniqueConstraint.
--------------------------------------+------------------------------------
Reporter: Lucidiot | Owner: Lucidiot
Type: Cleanup/optimization | Status: assigned
Component: contrib.auth | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Lucidiot):

* owner: nobody => Lucidiot
* status: new => assigned
* has_patch: 0 => 1


Comment:

Done: [https://github.com/django/django/pull/15560 PR]

Should I update the documentation as well?

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

Django

unread,
Apr 1, 2022, 5:40:22 AM4/1/22
to django-...@googlegroups.com
#33613: createsuperuser does not validate usernames that use a UniqueConstraint.
-------------------------------------+-------------------------------------
Reporter: Lucidiot | Owner: Lucidiot
Type: Bug | Status: assigned

Component: contrib.auth | Version: 4.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* type: Cleanup/optimization => Bug
* stage: Accepted => Ready for checkin


Comment:

> Should I update the documentation as well?

It should be enough to change `i.e.` to `e.g.`.

--
Ticket URL: <https://code.djangoproject.com/ticket/33613#comment:3>

Django

unread,
Apr 1, 2022, 6:35:40 AM4/1/22
to django-...@googlegroups.com
#33613: createsuperuser does not validate usernames that use a UniqueConstraint.
-------------------------------------+-------------------------------------
Reporter: Lucidiot | Owner: Lucidiot
Type: Bug | Status: closed
Component: contrib.auth | Version: 4.0
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"13a9cde133ac82e33dd091ca9bb9c677804afbe1" 13a9cde1]:
{{{
#!CommitTicketReference repository=""
revision="13a9cde133ac82e33dd091ca9bb9c677804afbe1"
Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD
when using Meta.constraints.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33613#comment:4>

Reply all
Reply to author
Forward
0 new messages