#20846: Increase contrib.auth's User.username length
------------------------------+--------------------------------------
Reporter: ivoras@… | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
------------------------------+--------------------------------------
Comment (by hwkns):
Replying to [comment:11 carljm]:
> If you use a `ModelForm` without overriding the field, the form field's
`max_length` will be automatically derived from the model field's
`max_length`.
That does sound bad, then. I'm tempted to say that ModelForms for the
`User` model are not very common, but I have no data to support that
assertion.
> Or contribute a fix to the third-party library, which shouldn't take
them long to accept if it's maintained (and if it's not maintained, you
may be better off moving that monkeypatch into your own code base anyway).
Yes, my plan is to contribute the fix to `longerusername`, and I'm happy
to do that. My frustration is with the "wontfix" sentiment surrounding
what was obviously a poor design choice in Django, as if it will magically
get better on its own if we ignore it for another 10 years (usernames are
only getting shorter, right?).
Replying to [comment:12 timgraham]:
> In fact, Collin started a [https://groups.google.com/d/topic/django-
developers/v3wYKWWYFT4/discussion thread on django-developers] a few days
ago to discuss the possibility of reopening this.
Thanks for the link -- I'll direct my comments to the mailing list thread
from here on out.
--
Ticket URL: <https://code.djangoproject.com/ticket/20846#comment:13>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/074.ed96ee96e6e9c1ba6ef2a14e82993204%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.