mozilla / fx-private-relay

Keep your email safe from hackers and trackers. Make an email alias with 1 click, and keep your address to yourself.
https://relay.firefox.com
Other
1.44k stars 168 forks source link

MPP-3827 - Prefer `user.profile` to `Profile.objects.get(user=user)` #4798

Closed jwhitlock closed 5 days ago

jwhitlock commented 1 week ago

The pattern profile = Profile.objects.get(user=user) was useful when user had a ForiegnKey relationship. Since #2749, it has been unnecessary. Switching these to user.profile has some benefits: