Cannot assign - must be a "UserProfile" instance
Posted
by webvulture
on Stack Overflow
See other posts from Stack Overflow
or by webvulture
Published on 2010-05-21T11:16:20Z
Indexed on
2010/05/21
11:20 UTC
Read the original article
Hit count: 567
I have a class UserProfile
defined which takes the default user
as a foreign key.
Now another class A
has a foreign key to UserProfile
.
So for saving any instance in class A, how do i give it the userprofile object.
Also, does making a class UserProfile
mean that class user
is still used and class UserProfile
is just some other table?
I need to know this as I have to take care of the user profile creation, so I should know what gets stored where?
-- Confused
© Stack Overflow or respective owner