Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

UserProfile needs a "user" attribute #18

Closed
malcolmt opened this Issue · 1 comment

1 participant

@malcolmt
Owner

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).

@malcolmt
Owner

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
Something went wrong with that request. Please try again.