Skip to content

Commit

Permalink
Further Django 1.8 compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Sep 8, 2015
1 parent f226cfa commit d2ae7b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -2,10 +2,10 @@ language: python
python:
- 2.7
env:
- BEFORE_DJANGO_VERSION=1.8 TASTYPIE_VERSION="==0.9.16"
- BEFORE_DJANGO_VERSION=1.8 TASTYPIE_VERSION=">=0.9.16"
- BEFORE_DJANGO_VERSION=1.9 TASTYPIE_VERSION="==0.9.16"
- BEFORE_DJANGO_VERSION=1.9 TASTYPIE_VERSION=">=0.9.16"
- BEFORE_DJANGO_VERSION=1.8 TASTYPIE_VERSION="==0.12.1"
- BEFORE_DJANGO_VERSION=1.8 TASTYPIE_VERSION=">=0.12.1"
- BEFORE_DJANGO_VERSION=1.9 TASTYPIE_VERSION="==0.12.1"
- BEFORE_DJANGO_VERSION=1.9 TASTYPIE_VERSION=">=0.12.1"
services: mongodb
install:
- pip install "Django<$BEFORE_DJANGO_VERSION"
Expand Down
7 changes: 6 additions & 1 deletion django_datastream/management/commands/dummystream.py
Expand Up @@ -6,7 +6,12 @@
import time

from django.core.management import base
from django.contrib.webdesign import lorem_ipsum

try:
# Moved in Django 1.8
from django.utils import lorem_ipsum
except ImportError:
from django.contrib.webdesign import lorem_ipsum

import pytz

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -41,7 +41,7 @@
install_requires=[
'Django>=1.7',
'datastream>=0.4.10',
'django-tastypie>=0.9.16',
'django-tastypie>=0.12.1',
'ujson==1.34',
'pytz>=2012h',
'mimeparse>=0.1.3',
Expand Down

0 comments on commit d2ae7b7

Please sign in to comment.