﻿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
19460	“Unknown password hashing algorithm” when logging in with custom model inheriting from django.contrib.auth.models.User	anonymous	nobody	"I created a custom user model by inheriting from django.contrib.auth.models.User, and added it to my admin. When I create an instance from MyUser admin, I have two (related) problems:

1- in the admin, the plain password (not uncrypted) is shown in the password field

2- when I try to login in my admin with an instance of MyUser, I get


{{{
Unknown password hashing algorithm '<mypassword>'. Did you specify it in the PASSWORD_HASHERS setting
}}}
    
is it a bug? how can I fix that? (I'm using Django 1.4.2)

'''models.py'''


{{{
from django.contrib.auth.models import User

class MyUser(User):
    number = models.IntegerField()
}}}


'''admin.py'''


{{{
class MyUserAdmin(admin.ModelAdmin):
    fields = ('username', 'password', 'number', 'first_name', 'last_name')

admin.site.register(MyUser, MyUserAdmin)
}}}
"	Uncategorized	closed	Uncategorized	1.4	Normal	invalid	user		Unreviewed	0	0	0	0	0	0
