#55 - Fallback to simplejson in older versions of Django.

This commit is contained in:
Evan Culver 2013-11-26 09:56:11 -08:00
parent 10adf8c66a
commit 5d6259e33a
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,3 @@
import json
import hashlib
import shortuuid
from datetime import datetime, tzinfo
@ -10,6 +9,11 @@ from django.db.models.fields import (DateTimeField, DateField,
from django.core.serializers.json import DjangoJSONEncoder
from .constants import EXPIRE_DELTA, EXPIRE_DELTA_PUBLIC, EXPIRE_CODE_DELTA
try:
import json
except ImporError:
import simplejson as json
try:
from django.utils import timezone
except ImportError: