Skip to content

Commit d3ad31f

Browse files
committed
Merge pull request #3 from skruger/django_18
Update official support for Django 1.8
2 parents 2d44fb9 + b54e93b commit d3ad31f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ _build
66
dist
77
build
88
venv
9+
.idea
10+
*.sqlite

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: python
22
env:
3-
- DJANGO="django>=1.7,<1.8"
3+
- DJANGO="django>=1.7,<1.9"
44
python:
55
- "2.7"
66
# command to install dependencies

provider/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1"
1+
__version__ = "1.2"

provider/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
SCOPES = getattr(settings, 'OAUTH_SCOPES', DEFAULT_SCOPES)
2727

28-
EXPIRE_DELTA = getattr(settings, 'OAUTH_EXPIRE_DELTA', timedelta(days=365))
28+
EXPIRE_DELTA = getattr(settings, 'OAUTH_EXPIRE_DELTA', timedelta(days=7))
2929

3030
# Expiry delta for public clients (which typically have shorter lived tokens)
31-
EXPIRE_DELTA_PUBLIC = getattr(settings, 'OAUTH_EXPIRE_DELTA_PUBLIC', timedelta(days=30))
31+
EXPIRE_DELTA_PUBLIC = getattr(settings, 'OAUTH_EXPIRE_DELTA_PUBLIC', timedelta(days=1))
3232

3333
EXPIRE_CODE_DELTA = getattr(settings, 'OAUTH_EXPIRE_CODE_DELTA', timedelta(seconds=10 * 60))
3434

0 commit comments

Comments
 (0)