Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
laginha committed Oct 29, 2013
1 parent eb3785b commit 4d43a2d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/key_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ Foreign key to django's `User`.

### token

The key token.
The key's string token.

### activation_date

The date of creation of the key.

### expiration_date

The date from which the key will expire, thus no longer valid (by default, one year after creation).
The date from which the key will no longer be valid (by default, one year after creation).

### last_used

The last time the key was used to access a resource, if `KEY_LAST_USED_UPDATE` set to `True` (default behavior).
The datetime of the last access using the key, if `KEY_LAST_USED_UPDATE` set to `True` (default behavior).
2 changes: 1 addition & 1 deletion docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The keys to `KEY_AUTH_401_TEMPLATE` are the arguments expected for `django.short
Content type for the Not Authorized response

```python
KEY_AUTH_401_CONTENT_TYPE = 'application/javascript; charset=utf-8' #JSON
KEY_AUTH_401_CONTENT_TYPE = 'application/json; charset=utf-8' #JSON
KEY_AUTH_401_CONTENT_TYPE = 'application/javascript; charset=utf-8' #JSONP
```

Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MIDDLEWARE_CLASSES = (
)
```

[More settings!](settings.md))
[More settings!](settings.md)


## Require key
Expand Down
2 changes: 1 addition & 1 deletion src/keyauth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Key(models.Model):
token = models.CharField(default=generate_token, max_length=100, unique=True)
# The date of creation of the key.
activation_date = models.DateField(auto_now_add=True)
# The date from which the key will expire, thus no longer valid (by default, one year after creation).
# The date from which the key will no longer be valid (by default, one year after creation).
expiration_date = models.DateField(default=years_from_now)
# The last time the key was used to access a resource.
last_used = models.DateTimeField(auto_now=True)
Expand Down

0 comments on commit 4d43a2d

Please sign in to comment.