title: Django rest framework one to one relation
body: <p>So I have follwoing models:</p>
  
  <pre><code>class A(models.Model):
    name = models.CharField()
    age = models.SmallIntergerField()
  
  class B(models.Model):
    a = models.OneToOneField(A)
    salary = model.IntergerField()
  </code></pre>
  
  <p>Now I want to create one rest end point for there two as they are one to one. So I want following as get</p>
  
  <pre><code>{
    url: 'http://localhost/customs/1/',
    name: 'abc',
    age: 24,
    salary: 10000
  }
  </code></pre>
  
  <p>Similary, I want to create records and update as well. Please let me know how can I achieve this in django rest framework 3.</p>