title: Rest Framework for Django and Token Authentication confusion
body: <p><strong>Question Background</strong></p>
  
  <p>Hello, I'm having some issues figuring out how to integrate auth tokens into my application. 
  Currently, I have everything setup as per the docs (at least I think so, see point 1 on documents I've looked over).  I can reach the auth token endpoint and in fact get a token, I can also verify that it is allowing me to authenticate with that token as I have it added to the required permissions of some of my endpoints (provided below).  </p>
  
  <p><strong>Core question</strong></p>
  
  <p>My question is, I'm trying to figure out how to associate a user's post with their auth token and make them the 'owner' of that post with their token but use their 'username' instead of their 'token' string.  I appreciate any and all help :) </p>
  
  <p>In my models.py file...I get the error that the owner must be an instance of 'User' and I'm assuming it's from the Django auth.User.  I'm wondering how I can change this so that it uses the token to figure out who the user is and save it as their name.  I've looked over the documentation and I'm not sure where I can find it.  </p>
  
  <p><strong>The documents I've looked over</strong></p>
  
  <ol>
  <li>rest framework <a href="http://www.django-rest-framework.org/api-guide/authentication" rel="nofollow">authentication</a></li>
  </ol>
  
  <p>As I've stated previously, I can authenticate with my tokens just fine with this line of code in my views....and it works just fine, no errors. Which leads me to believe I'm doing something wrong with my model.py (pasted in below). </p>
  
  <p><code>authentication_classes = (authentication.TokenAuthentication,)</code></p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import User
  from rest_framework.authtoken.models import Token
  # Create your models here.
  class PRequests(models.Model):
    created = models.DateTimeField(auto_now_add=True)
    owner = models.ForeignKey('auth.User', related_name='p_requests')
    first_name = models.CharField(max_length=100)
    last_name = models.CharField(max_length=100)
    pmessage = models.TextField()
    approved = models.BooleanField(default=False)
  
    def save(self, *args, **kwargs):
       super(PRequests, self).save(*args,**kwargs)
  </code></pre>
  
  <p><strong>settings.py</strong></p>
  
  <pre><code>INSTALLED_APPS = (
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.sites',
  'django.contrib.messages',
  'django.contrib.staticfiles',
  # Uncomment the next line to enable the admin:
  'django.contrib.admin',
  # Uncomment the next line to enable admin documentation:
  # 'django.contrib.admindocs',
  'api',
  'rest_framework',
  'rest_framework.authtoken',
  'wlmapp',
  'p_requests',
  'corsheaders',
  'nuggets',
  )
  </code></pre>
  
  <p>I have added the authtoken to framework and included an endpoint so users can actually receive a token.</p>
  
  <pre><code>urlpatterns += patterns('', 
      url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
      url(r'^api-token-auth/', 'rest_framework.authtoken.views.obtain_auth_token'),
  )
  </code></pre>