tomchristie/django-rest-framework — pull request #1730 by rphlo (2014-08-03 20:39:26+00:00)
Title: Upgrade TokenAuthentication

Simplify the process needed to override TokenAuthentication so it can be using any model that has a key and a user field, whatever the name of those fields.

E.g.

CustomTokenAuth(TokenAuthentication):
model = MyToken
user_field_name = 'owner'
key_field_name = 'api_key'