Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

UserProfile needs a "user" attribute #18

Closed
malcolmt opened this Issue Sep 27, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

malcolmt commented Sep 27, 2010

We're using UserProfile.student as the name of the OneToOneField back to the User model. Django requires it to be called "user" (it's a slight bug in Django that validation doesn't pick that up).

Owner

malcolmt commented Sep 27, 2010

Change UserProfile to Profile class.

Closed by d6bef0e.

We forgot to make the link from UserProfile -> User be the attribute
"user". This fixes that, but the easiest way to migrate between models
when changing the primary key is to create a new model and copy the data
back and forth. So I've created the Profile model that mirrors the old
UserProfile, except that "student" is now called "user".

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment