inheritance from the django user model results in error when changing password
Posted
by Jerome
on Stack Overflow
See other posts from Stack Overflow
or by Jerome
Published on 2010-06-01T19:26:59Z
Indexed on
2010/06/02
5:13 UTC
Read the original article
Hit count: 167
django
I inherited form the django user model like so:
from django.db import models
from django.contrib.auth.models import User, UserManager
from django.utils.translation import ugettext_lazy as _
class NewUserModel(User):
custom_field_1 = models.CharField(_('custom field 1'), max_length=250, null=True, blank=True)
custom_field_2 = models.CharField(_('custom field 2'), max_length=250, null=True, blank=True)
objects = UserManager()
When i go to the admin and add an entry into this model, it saves fine, but below the "Password" field where it has this text "Use '[algo]$[salt]$[hexdigest]' or use the change password form.", if i click on the "change password form' link, it produces this error
Truncated incorrect DOUBLE value: '7/password'
What can i do to fix this?
© Stack Overflow or respective owner