I have a Users table inside of a postgresql database in which auth_user also lives. I want the Users objects to have a OneToOne to the auth_user model. I added a line to my models.py under my Users class:
user = models.OneToOneField(User, unique=True) There are probably other things wrong, because at this point my basic template returns this traceback: Exception Type: ProgrammingError at /scripts/users/ Exception Value: column users.user_id does not exist LINE 1: SELECT "users"."id", "users"."user_id", "users"."email", "us.. I know my Users table doesn't have the user_id column. I do not know how to add it. Do Django users prefer to write a migration for this? Migrations themselves are not detecting any changes per app at all so I am completely flummoxed on how to add this column properly. I was going to manually do it in postgres, but I didn't know how to make it conform to the corresponding field in auth_user. Thank you for your help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3e89ccba-dcb9-42ef-b084-c6cc4b7d6891%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

