Django 1.6-dev Custom User admin.StackedInline - Bug

85 views
Skip to first unread message

Detectedstealth

unread,
Dec 1, 2012, 5:03:03 PM12/1/12
to django...@googlegroups.com
Hi I just found when creating a custom user then using a StackedInline everything will show up as expected however, when I then try to save anything I get: 

File "/Library/Python/2.7/site-packages/django/contrib/auth/hashers.py", line 135, in identify_hasher
    if len(encoded) == 32 and '$' not in encoded:
TypeError: object of type 'NoneType' has no len()
[01/Dec/2012 13:55:22] "POST /admin/profiles/customuser/1/ HTTP/1.1" 500 542195

It looks like it is caused by the hashed password field for some reason.

If I remove the inlines = [ExperienceInline] from the CustomUserAdmin(UserAdmin) I can save without any problems. 

When I use WorkExperience (ExperienceInline) on its own admin page it saves without a problem. When I put an StackedInline on the WorkExperience page it also saves without any problems. 

The problem only seems to happen when having a stacked inline inside of a custom user admin page.

Any suggestions? 
Screen Shot 2012-12-01 at 1.55.19 PM (2).png
Screen Shot 2012-12-01 at 1.55.51 PM (2).png

Detectedstealth

unread,
Dec 5, 2012, 12:37:32 AM12/5/12
to django...@googlegroups.com
UPDATE:

This is fixed with the latest git code pull. I pulled approx. 5mins ago.
Reply all
Reply to author
Forward
0 new messages