Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing relative imports in test files.

  • Loading branch information...
commit 33ffd28d76d775c970691a3da282e98b349735c4 1 parent de79d23
@claudep claudep authored
View
4 django/contrib/admindocs/tests/__init__.py
@@ -1,9 +1,11 @@
+from __future__ import absolute_import
+
from django.contrib.admindocs import views
from django.db.models import fields as builtin_fields
from django.utils import unittest
from django.utils.translation import ugettext as _
-import fields
+from . import fields
class TestFieldType(unittest.TestCase):
View
4 tests/modeltests/tablespaces/tests.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import copy
from django.conf import settings
@@ -7,7 +9,7 @@
from django.core.management.color import no_style
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
-from models import Article, ArticleRef, Authors, Reviewers, Scientist, ScientistRef
+from .models import Article, ArticleRef, Authors, Reviewers, Scientist, ScientistRef
# We can't test the DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE settings
# because they're evaluated when the model class is defined. As a consequence,
View
4 tests/regressiontests/admin_inlines/admin.py
@@ -1,7 +1,9 @@
+from __future__ import absolute_import
+
from django.contrib import admin
from django import forms
-from models import *
+from .models import *
site = admin.AdminSite(name="admin")
Please sign in to comment.
Something went wrong with that request. Please try again.