Skip to content

Commit

Permalink
Merge pull request #12 from fcasas/master
Browse files Browse the repository at this point in the history
authentication model missing s - issue #11
  • Loading branch information
JamesRitchie committed Sep 8, 2016
2 parents 126252b + 2c4d46c commit 20de794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest_framework_expiring_authtoken/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class ExpiringTokenAuthentication(TokenAuthentication):
Based on http://stackoverflow.com/questions/14567586/
"""

models = ExpiringToken
model = ExpiringToken

def authenticate_credentials(self, key):
"""Attempt token authentication using the provided key."""
try:
token = self.models.objects.get(key=key)
token = self.model.objects.get(key=key)
except self.model.DoesNotExist:
raise exceptions.AuthenticationFailed('Invalid token')

Expand Down

0 comments on commit 20de794

Please sign in to comment.