# HG changeset patch # User Brian Neal # Date 1472321934 18000 # Node ID 21a29f2520ca1fd8c68fa9774607acbe6aed4635 # Parent 137650a0be4eed667a284465c7e72c58e40c2d4d Add related_name to UserProfile model example. diff -r 137650a0be4e -r 21a29f2520ca content/Coding/030-retiring-get-profile-and-auth-profile-module.rst --- a/content/Coding/030-retiring-get-profile-and-auth-profile-module.rst Sat Aug 27 13:04:58 2016 -0500 +++ b/content/Coding/030-retiring-get-profile-and-auth-profile-module.rst Sat Aug 27 13:18:54 2016 -0500 @@ -84,7 +84,7 @@ class Profile(models.Model): """model to represent additional information about users""" - user = models.OneToOneField(User) + user = models.OneToOneField(User, related_name='profile') # ... other custom stuff here Update the code