summaryrefslogtreecommitdiff
path: root/tests/regressiontests/model_fields/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/model_fields/tests.py')
-rw-r--r--tests/regressiontests/model_fields/tests.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py
index faa74cc05b..8fe67fb606 100644
--- a/tests/regressiontests/model_fields/tests.py
+++ b/tests/regressiontests/model_fields/tests.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import datetime
from decimal import Decimal
@@ -8,14 +10,15 @@ from django.db import models
from django.db.models.fields.files import FieldFile
from django.utils import unittest
-from models import Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post, NullBooleanModel, BooleanModel, Document, RenamedField
+from .models import (Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post,
+ NullBooleanModel, BooleanModel, Document, RenamedField)
# If PIL available, do these tests.
if Image:
- from imagefield import (
- ImageFieldTests, ImageFieldTwoDimensionsTests, TwoImageFieldTests,
- ImageFieldNoDimensionsTests, ImageFieldOneDimensionTests,
- ImageFieldDimensionsFirstTests, ImageFieldUsingFileTests)
+ from .imagefield import (ImageFieldTests, ImageFieldTwoDimensionsTests,
+ TwoImageFieldTests, ImageFieldNoDimensionsTests,
+ ImageFieldOneDimensionTests, ImageFieldDimensionsFirstTests,
+ ImageFieldUsingFileTests)
class BasicFieldTests(test.TestCase):