Serializing two different types of extended user models with django rest framework
<p>I am currently building an app that extends the Django <code>User</code> model with an <code>Owner</code> and a <code>Customer</code> version of the User model.  So far they don't have any extra fields, but I plan to add those later on depending on where my app goes.</p>

<p>models.py</p>

<pre><code>class Owner(models.Model):
    user = models.OneToOneField(User, related_name='owner')

class Customer(models.Model):
    user = models.OneToOneField(User, related_name='customer')
</code></pre>

<p>My dilemma is that I am struggling to figure out to construct the serializer and the views so I can create both a <code>User</code> instance as well as a respective <code>Customer</code> instance or an <code>Owner</code> instance depending on what I want to do.  </p>

<p>EDIT for clarity: 
I want to be able to use these to register users as well as update them with the serializer but there will be two different kinds of Users.  Later on they are going to have more fields that are unique to each other but as of now they are just separate models.</p>