  import uuid
  import hmac
  from hashlib import sha1
  from rest_framework.compat import AUTH_USER_MODEL
  from django.conf import settings
  from django.db import models
  
  
  class Token(models.Model):
 
</s> remove # Django 1.5 add support for custom auth user model
if django.VERSION >= (1, 5):
    AUTH_USER_MODEL = settings.AUTH_USER_MODEL
else:
    AUTH_USER_MODEL = 'auth.User'


 </s> add 
  import uuid
  import hmac
  from hashlib import sha1

  from django.conf import settings
  from django.db import models
  
  
  class Token(models.Model):
keep keep keep replace keep keep keep keep keep
 Don't import compat.py from authtoken.models.  Closes #1297 
rest_framework/authtoken/models.py