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

  • Home
  • SEARCH
  • 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 7646155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:08:09+00:00 2026-05-31T10:08:09+00:00

Currently I created another class/table called MyAppUser with my custom columns (such as address

  • 0

Currently I created another class/table called MyAppUser with my custom columns (such as address and phone number) that has a foreign key to Django’s authentication User.

Something like this

from django.db import models
from django.contrib.auth.models import User

class MyAppUser( models.Model ) :
    def __unicode__( self ) :
       return self.user.username

    user    = models.ForeignKey( User )
    comment = models.TextField( blank = True )
    phone   = models.CharField( max_length = 135, blank = True )

Is the above method a good practice? Or should I try to modify the auth_user directly? And if so, how would I do that?

Bonus question: Is there a way to have both my custom table to be called User as well? I thought about trying from django.contrib.auth import models, then calling models.User, but then I think that would conflict with django.db.models as well. Maybe I need to try from django.contrib.auth.models import User as AuthUser? Is this a good idea?

  • 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-31T10:08:11+00:00Added an answer on May 31, 2026 at 10:08 am

    Django provides built-in support for extending the user with your own properties, called User Profiles.

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

Sidebar

Related Questions

Currently I have created a ABCFactory class that has a single method creating ABC
I've created a custom module (which currently only defines a new Exception class), and
Currently, I have a project with a Windows Service. I also created another Setup
I'm currently trying to created a custom ConfigurationSection for my application, however VS2008 is
I currently have a thread that I created using CreateRemoteThread(). Everything works great. Upon
I'm currently working on an app that is being created using Ironspeed Designer. It's
I am currently developing a function that is meant to execute dynamically created SQL
I created a custom exception public class InvalidUsernameException : ApplicationException { public InvalidUsernameException() {
I have created a class that inherits the QListWidget and is meant to be
I have a class that has overloaded constructors. I'd like to re-factor the code

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.