title: How to serialize into multiple models using DjangoRestFramework
body: <p>I have defined a user profile model, but want to have one api endpoint that saves all of the user data into both models. By that I mean, I am using the user model and I have a userprofile model defined as follows</p>
  
  <pre><code>class UserProfile(models.Model):
      user = models.OneToOneField(settings.AUTH_USER_MODEL)
      biography = models.TextField()
  </code></pre>
  
  <p>when I define a serializer for creating a new user, how do I get it to serialize data into both the user model, and the userProfile model?</p>