Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

magic-removal: Deferred import of django.db.models to allow --setting…

…s option to work on runtests.py.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 96c66c7fdb1935ce8997910765fb30e50274f32a 1 parent 6a90f49
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/runtests.py
View
2  tests/runtests.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
import os, re, sys, time, traceback
-import django.db.models
# doctest is included in the same package as this module, because this testing
# framework uses features only available in the Python 2.4 version of doctest,
@@ -79,6 +78,7 @@ def run_tests(self):
from django.db import connection
from django.core import management
+ import django.db.models
# Determine which models we're going to test.
test_models = get_test_models()
Please sign in to comment.
Something went wrong with that request. Please try again.