Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 835469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:49:56+00:00 2026-05-15T04:49:56+00:00

I inherited form the django user model like so: from django.db import models from

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:49:56+00:00Added an answer on May 15, 2026 at 4:49 am

    The best way to extend Django’s User model is to create a new Profile model and identify it through the AUTH_PROFILE_MODULE setting. See http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/, and http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users

    This adds a get_profile() method to User instances which retrieves your associated model for a given User.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Django has list_editable . I need to edit is_active flag. from django.contrib.auth.models import User
I am using django-registration app. and have following code in forms.py from django.contrib.auth.forms import
I have 2 multi-table inherited models like these: class Post(models.Model): title = models.CharField(max_length=100, blank=True,
I have a winforms form which is inherited from another form. e.g. class StartForm
Form has the DoubleBuffered property (bool, inherited from Control). If this is set to
I have the following code (inherited from someone): <div class=feedback>&nbsp;</div> <form onsubmit=return false autocomplete=off>
I'm working with Visual studio 2008. I have a form inherited from DockContent class
So I've inherited this form with prefilled form fields like First Name, Phone or
I have CustomForm inherited from Form which implements a boolean property named Prop .
In Django, how do I associate a Form with a Model so that data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.