Documentation still says to use ForeignKey with unique=True to add a UserProfile
|Reported by:||hvdklauw||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation says to extend the user model you should add a profile model with a foreignkey with unique=True to the user.
Is there a reason for doing this instead of a OneToOne field?
The OneToOne field has the advantage that you can get the profile for the user directly.
Change History (5)
comment:1 Changed 5 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted