Skip to content

Commit

Permalink
Preprare for 0.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
James Ritchie committed Oct 10, 2015
1 parent 6aa23da commit 4feb809
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ INSTALLED_APPS = [
Specify the desired lifespan of a token with `EXPIRING_TOKEN_LIFESPAN` in
`settings.py` using a
[timedelta object](https://docs.python.org/2/library/datetime.html#timedelta-objects).
If not set, the default is 30 days.

```python
import datetime
EXPIRING_TOKEN_LIFESPAN = datetime.timedelta(days=30)
EXPIRING_TOKEN_LIFESPAN = datetime.timedelta(days=25)
```

[Set the authentication scheme](http://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme) to `rest_framework_expiring_authtoken.authentication.ExpiringTokenAuthentication`
Expand Down Expand Up @@ -85,13 +86,15 @@ The `obtain_expiring_auth_token` view works exactly the same as the `obtain_auth

## Improvements

* Potentially have a default setting for token lifespan.
* Variable token lifespans.
* Possibly change `obtain_expiring_auth_token` to always replace an existing token. (Configurable?)
* South Migrations

## Changelog


* 0.1.3
* Set a default token lifespan of 30 days.
* 0.1.2
* Changed from deprecated `request.DATA` to `request.data`
* 0.1.1
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_expiring_authtoken/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
'views'
]

__version__ = '0.1.2'
__version__ = '0.1.3'

0 comments on commit 4feb809

Please sign in to comment.