#29449: UserCreationForm and UserChangeForm don't work if username isn't a
CharField
-------------------------------------+-------------------------------------
Reporter: Sławek Ehlert | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 2.1
Severity: Release blocker | Resolution:
Keywords: auth forms | Triage Stage: Accepted
UserCreationForm UserChangeForm |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sławek Ehlert):
Well, I think the more pressing problem is not the feature set Django
supports and the docs, but the fact that the change mentioned here breaks
the test suite and can break people's projects.
Also by having a {{{auth_tests.CustomUserWithFK}}} model in the test
suite, one would think that this kind of model is supported by Django,
which is not true at this point.
Moreover, having a similar user model in a project means that a developer
can't even import from {{{django.contrib.auth.forms}}} module. And what if
something imports that module that's not in developer's control? E.g.
currently {{{django/contrib/admin/forms.py}}},
{{{django/contrib/auth/admin.py}}} and {{{django/contrib/auth/views.py}}}
are importing something from that module, so that means on fresh project
with admin enabled with that kind of a user model, developer can't even
run {{{./manage.py --help}}}.
--
Ticket URL: <https://code.djangoproject.com/ticket/29449#comment:8>
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/063.6a216be5f8310b8ba33881610a561a97%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.