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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:20:15+00:00 2026-06-10T03:20:15+00:00

Hi I am getting this error because I have a field in my additional

  • 0

Hi I am getting this error because I have a field in my additional user info model (user = models.OneToOneField(User)) that I am not filling in at sign up (as I want to let the user do it later).

I wondered if there was any way to solve this problem other than allowing null field in the db?

Cheers

  • 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-10T03:20:17+00:00Added an answer on June 10, 2026 at 3:20 am

    Try to

    user = models.OneToOneField(User, null=True, blank=True)

    And then recreate your db.
    You can find more on https://docs.djangoproject.com/en/1.4/ref/models/fields/#null

    Else you can use Proxy models:

    class UserExtraInfo(User):
    #here your extra fields
    

    In this case you won`t need to create UserExtraInfo instance in same time with User.
    Read more on https://docs.djangoproject.com/en/1.4/topics/db/models/#model-inheritance

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

Sidebar

Related Questions

i am getting this error failed to execute request because the app-domain could not
Currently getting this following error: You do not have permission to view this directory
I am getting an error when I run this query because the data type
I have a class that implements IDisposable because it has a private member field
So my situation is that I have a linq-to-sql model that does not allow
**This is my newly added field to my quote model quote_template = models.CharField(_('Template'), choices=TEMPLATE,
I have been getting this error in Ruby 1.9, Rails 3.0, ActiveRecord 3.0: incompatible
I have tried many things, but I'm still not getting this to work. Here's
I'm getting this error: Templates can be used only with field access, property access,
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler

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.