Run uuid field tests unconditional

master
Jaap Roes 2017-03-16 15:33:48 +01:00
parent 209a280ce8
commit 9997644929
1 changed files with 6 additions and 11 deletions

View File

@ -3,12 +3,8 @@ try:
except ImportError:
import http.client as httplib
from django import VERSION
if VERSION > (1, 8):
import uuid
import json
import uuid
from django import VERSION
from django.contrib.auth.models import User
@ -33,7 +29,6 @@ class TestSortableModel(SortableMixin):
return self.title
if VERSION > (1, 8):
class TestNonAutoFieldModel(SortableMixin):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
order = models.PositiveIntegerField(editable=False, db_index=True)