Skipped UUI import for Django less than 1.8

master
Brandon Taylor 2016-10-12 22:07:54 -04:00
parent 76378483ff
commit bf75b85190
1 changed files with 5 additions and 1 deletions

View File

@ -3,8 +3,12 @@ try:
except ImportError: except ImportError:
import http.client as httplib import http.client as httplib
from django import VERSION
if VERSION > (1, 8):
import uuid
import json import json
import uuid
from django import VERSION from django import VERSION
from django.contrib.auth.models import User from django.contrib.auth.models import User