You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely sure a FK from User to Profile is what you want in the first place. It means that potentially more than one User can point to the same Profile instance.
What you probably want is either a OneToOneField (so each User has exactly one Profileand vice-versa), or a FK from Profile to User (ie: a User can have multiple Profiles).
Imagine that we have a model like so:
And later I want to use it like so:
But, currently this does not work. What can be done to pass kwargs to related objects?
The text was updated successfully, but these errors were encountered: