title: How does django one-to-one relationships map the name to the child object?
body: <p>Apart from one example in the docs, I can't find any documentation on how exactly django chooses the name with which one can access the child object from the parent object. In their example, they do the following:</p>
  
  <pre><code>    class Place(models.Model):
          name = models.CharField(max_length=50)
          address = models.CharField(max_length=80)
  
          def __unicode__(self):
              return u"%s the place" % self.name
  
      class Restaurant(models.Model):
          place = models.OneToOneField(Place, primary_key=True)
          serves_hot_dogs = models.BooleanField()
          serves_pizza = models.BooleanField()
  
          def __unicode__(self):
              return u"%s the restaurant" % self.place.name
  
      # Create a couple of Places.
      &gt;&gt;&gt; p1 = Place(name='Demon Dogs', address='944 W. Fullerton')
      &gt;&gt;&gt; p1.save()
      &gt;&gt;&gt; p2 = Place(name='Ace Hardware', address='1013 N. Ashland')
      &gt;&gt;&gt; p2.save()
  
      # Create a Restaurant. Pass the ID of the "parent" object as this object's ID.
      &gt;&gt;&gt; r = Restaurant(place=p1, serves_hot_dogs=True, serves_pizza=False)
      &gt;&gt;&gt; r.save()
  
      # A Restaurant can access its place.
      &gt;&gt;&gt; r.place
      &lt;Place: Demon Dogs the place&gt;
      # A Place can access its restaurant, if available.
      &gt;&gt;&gt; p1.restaurant
  </code></pre>
  
  <p>So in their example, they simply call p1.restaurant without explicitly defining that name. Django assumes the name starts with lowercase. What happens if the object name has more than one word, like FancyRestaurant?</p>
  
  <p>Side note: I'm trying to extend the User object in this way. Might that be the problem?</p>