diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-10-13 18:04:12 +0000 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-10-13 18:04:12 +0000 |
commit | d5a45d79fe03cad93ab5761860e9bb6fc1db4c86 (patch) | |
tree | 0fd5b87753749027117c088543e1ff8fdc7b945b /tests/modeltests/m2m_intermediary | |
parent | 99512d3544cd792e14927c24a8f92389c4006122 (diff) | |
download | django-d5a45d79fe03cad93ab5761860e9bb6fc1db4c86.tar.gz |
Convert all modeltests to use absolute imports, rather than relative ones.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/m2m_intermediary')
-rw-r--r-- | tests/modeltests/m2m_intermediary/models.py | 1 | ||||
-rw-r--r-- | tests/modeltests/m2m_intermediary/tests.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/modeltests/m2m_intermediary/models.py b/tests/modeltests/m2m_intermediary/models.py index 8042a52b38..ea9b83ea14 100644 --- a/tests/modeltests/m2m_intermediary/models.py +++ b/tests/modeltests/m2m_intermediary/models.py @@ -12,6 +12,7 @@ field, which specifies the ``Reporter``'s position for the given article from django.db import models + class Reporter(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) diff --git a/tests/modeltests/m2m_intermediary/tests.py b/tests/modeltests/m2m_intermediary/tests.py index 5f357412a5..cdc762246a 100644 --- a/tests/modeltests/m2m_intermediary/tests.py +++ b/tests/modeltests/m2m_intermediary/tests.py @@ -1,8 +1,10 @@ +from __future__ import absolute_import + from datetime import datetime from django.test import TestCase -from models import Reporter, Article, Writer +from .models import Reporter, Article, Writer class M2MIntermediaryTests(TestCase): |