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 8034997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:10:57+00:00 2026-06-05T02:10:57+00:00

I need to create custom users in my app. In the example given in

  • 0

I need to create custom users in my app.

In the example given in the doc

class CustomUser(models.Model):
    user = models.OneToOneField(User)
    #custom fields

a user must exists before creating a CustomUser.

What I want to do is to create automatically a User when I create a CustomUser.

In the CustomUser admin (only visible by the superuser), I’d like to have only the custom fields and a few fields from the User model, as well as some form to allow the superuser to change the password for existing instance.

Anybody could help?

  • 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-06-05T02:10:59+00:00Added an answer on June 5, 2026 at 2:10 am

    The first part of your question is easy, you can use a signal:

    def create_custom_user(sender, instance, created, **kwargs):
        if created:
            custom_user, created = CustomUser.objects.get_or_create(user=instance)
    
    post_save.connect(create_custom_user, sender=User)
    

    As for the second part, theres already a change password form in the admin. To filter out the displayed fields you can create a CustomUserAdmin and register it together with the model. It’s pretty self explaining in the django docs.

    django docs: list_display

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

Sidebar

Related Questions

How to create a custom login system with google-app-engine's User class? I'm making my
I need to allow the users of my web app to create custom forms.
I need create custom tabbar with super class UITabBarController. But i don,t know how
I need to create a custom membership user and provider for an ASP.NET mvc
I need create custom dialog and put JPanel into it. Is it possible?
Need to create a custom DNS name server using C which will check against
I need to create a custom view in Android that does this animation: http://www.youtube.com/watch?feature=player_detailpage&v=owDzB4Q95fM#t=48s
I need to create a custom constraint annotation which can access the value of
I need to create a custom URI scheme for my project. i.e urn:myprotocol:{p1}:{p2}:{p3}:{p4} -
I need to create a custom application domain to work around a bug in

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.