Skip to content

Commit 33ffd28

Browse files
committed
Added missing relative imports in test files.
1 parent de79d23 commit 33ffd28

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

django/contrib/admindocs/tests/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
from __future__ import absolute_import
2+
13
from django.contrib.admindocs import views
24
from django.db.models import fields as builtin_fields
35
from django.utils import unittest
46
from django.utils.translation import ugettext as _
57

6-
import fields
8+
from . import fields
79

810

911
class TestFieldType(unittest.TestCase):

tests/modeltests/tablespaces/tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import absolute_import
2+
13
import copy
24

35
from django.conf import settings
@@ -7,7 +9,7 @@
79
from django.core.management.color import no_style
810
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
911

10-
from models import Article, ArticleRef, Authors, Reviewers, Scientist, ScientistRef
12+
from .models import Article, ArticleRef, Authors, Reviewers, Scientist, ScientistRef
1113

1214
# We can't test the DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE settings
1315
# because they're evaluated when the model class is defined. As a consequence,

tests/regressiontests/admin_inlines/admin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
from __future__ import absolute_import
2+
13
from django.contrib import admin
24
from django import forms
35

4-
from models import *
6+
from .models import *
57

68
site = admin.AdminSite(name="admin")
79

0 commit comments

Comments
 (0)