﻿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
21082	django 1.5.1  custom User models bug	xmmilk@…	nobody	"(I can't English,sorry!)
on Configurable User models: (I have a third-party reusable application)
    the User models primary_key fields name is ""uid"". 
    then found the following two error.

1.
AttributeError: 'User' object has no attribute 'id'
django\contrib\admin\templatetags\log.py  line 19 
         user_id = context[self.user].id
modify : user_id = context[self.user].pk

2.  
FieldError: Cannot resolve keyword 'id' into field.
django\db\models\sql/query.py  line 1332

I do not know how to modify this error.
I just in line 1319 insert :
            elif name == 'id':
                name = opts.pk.name"	Uncategorized	closed	Database layer (models, ORM)	1.5	Normal	worksforme			Unreviewed	0	0	0	0	0	0
