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?
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ehys_MhZyrsJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment