does anyone use contrib.auth's "test models"? (CustomUser and ExtensionUser)

87 views
Skip to first unread message

Tim Graham

unread,
Jan 20, 2016, 9:38:44 PM1/20/16
to Django developers (Contributions to Django itself)
As Simon noted in a ticket [1], "Since the introduction of contrib application migrations in 1.8 (#22170) the documented custom user test models table are not created anymore because they are registered to the 'auth' labeled application but are not part of its shipped migrations. Based on the fact this was not reported before and that the only uses of ExtensionUser I can find is either from a vendored version of Django or a copy-pasta of the documentation suggested usage I think we can safely assume it's not commonly used among third-party application who claim to support custom user models."


Any objection to removing those models from documentation in 1.8 and 1.9 and removing the models themselves in 1.10? (Actually, the models would be moved into the test suite instead of shipped in django/contrib/auth/tests/custom_user.py -- this is done in [2].)


[1] https://code.djangoproject.com/ticket/26089

[2] https://github.com/django/django/pull/5975

Markus Holtermann

unread,
Jan 25, 2016, 1:32:22 AM1/25/16
to Django developers (Contributions to Django itself)
Thanks Simon and Tim,

I'd be ok with moving them into the tests in 1.10, but would give people a bit more time to see and respond to this discussion. Maybe until Feb 4th, that would be 2 weeks.

I haven't seen anybody actually using the models nor do I use them myself.

/Markus
Reply all
Reply to author
Forward
0 new messages