﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26445	Can't set password on User during migration that depends on contrib.auth	Markus Amalthea Magnuson	Markus Amalthea Magnuson	"I have an app with migrations that depend on the `contrib.auth` migrations. In one of my own migrations I want to create User objects and set their password. When trying to set a password for User object either through `.set_password()` or directly on creation through e.g. `.create_superuser()` I get this error:
{{{
AttributeError: 'User' object has no attribute 'set_password'
}}}
Attached is a test project. Create a virtual env with Django 1.9 and run `./manage.py migrate` in it to see the error.

It seems like the password related methods are not available on the User object, only in the default manager, which I gather is not available in migrations. Is this intentional?"	Bug	closed	contrib.auth	1.9	Normal	fixed		Markus Holtermann django2.20.orzelf@…	Accepted	1	0	0	0	0	0
