mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.8.x] Updated tutorial to use explicit relative imports.
Backport of b2f331dc68 from master
This commit is contained in:
@@ -170,7 +170,8 @@ Put the following in the ``tests.py`` file in the ``polls`` application:
|
||||
from django.utils import timezone
|
||||
from django.test import TestCase
|
||||
|
||||
from polls.models import Question
|
||||
from .models import Question
|
||||
|
||||
|
||||
class QuestionMethodTests(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user