Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed a bunch of legacy django.db.backend imports

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6d8e6090e598bcfafa7caffdee37e191d1ee7f4a 1 parent 1a8f9b2
Adrian Holovaty authored August 20, 2007
2  django/core/management/commands/syncdb.py
@@ -12,7 +12,7 @@ class Command(NoArgsCommand):
12 12
     args = '[--verbosity] [--noinput]'
13 13
 
14 14
     def handle_noargs(self, **options):
15  
-        from django.db import backend, connection, transaction, models
  15
+        from django.db import connection, transaction, models
16 16
         from django.conf import settings
17 17
         from django.core.management.sql import table_list, installed_models, sql_model_create, sql_for_pending_references, many_to_many_sql_for_model, custom_sql_for_model, sql_indexes_for_model, emit_post_sync_signal
18 18
 
8  django/core/management/sql.py
@@ -214,7 +214,7 @@ def sql_model_create(model, style, known_models=set()):
214 214
     Returns the SQL required to create a single model, as a tuple of:
215 215
         (list_of_sql, pending_references_dict)
216 216
     """
217  
-    from django.db import backend, connection, models
  217
+    from django.db import connection, models
218 218
 
219 219
     opts = model._meta
220 220
     final_output = []
@@ -282,7 +282,7 @@ def sql_for_pending_references(model, style, pending_references):
282 282
     """
283 283
     Returns any ALTER TABLE statements to add constraints after the fact.
284 284
     """
285  
-    from django.db import backend, connection
  285
+    from django.db import connection
286 286
     from django.db.backends.util import truncate_name
287 287
 
288 288
     qn = connection.ops.quote_name
@@ -307,7 +307,7 @@ def sql_for_pending_references(model, style, pending_references):
307 307
     return final_output
308 308
 
309 309
 def many_to_many_sql_for_model(model, style):
310  
-    from django.db import backend, connection, models
  310
+    from django.db import connection, models
311 311
     from django.contrib.contenttypes import generic
312 312
 
313 313
     opts = model._meta
@@ -390,7 +390,7 @@ def custom_sql_for_model(model):
390 390
 
391 391
 def sql_indexes_for_model(model, style):
392 392
     "Returns the CREATE INDEX SQL statements for a single model"
393  
-    from django.db import backend, connection
  393
+    from django.db import connection
394 394
     output = []
395 395
 
396 396
     qn = connection.ops.quote_name
2  django/db/backends/oracle/base.py
@@ -264,7 +264,7 @@ def get_trigger_name(table):
264 264
 def get_query_set_class(DefaultQuerySet):
265 265
     "Create a custom QuerySet class for Oracle."
266 266
 
267  
-    from django.db import backend, connection
  267
+    from django.db import connection
268 268
     from django.db.models.query import EmptyResultSet, GET_ITERATOR_CHUNK_SIZE, quote_only_if_word
269 269
 
270 270
     class OracleQuerySet(DefaultQuerySet):
2  django/db/models/__init__.py
... ...
@@ -1,7 +1,7 @@
1 1
 from django.conf import settings
2 2
 from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
3 3
 from django.core import validators
4  
-from django.db import backend, connection
  4
+from django.db import connection
5 5
 from django.db.models.loading import get_apps, get_app, get_models, get_model, register_models
6 6
 from django.db.models.query import Q
7 7
 from django.db.models.manager import Manager
2  django/db/models/base.py
@@ -6,7 +6,7 @@
6 6
 from django.db.models.fields.related import OneToOneRel, ManyToOneRel
7 7
 from django.db.models.query import delete_objects
8 8
 from django.db.models.options import Options, AdminOptions
9  
-from django.db import connection, backend, transaction
  9
+from django.db import connection, transaction
10 10
 from django.db.models import signals
11 11
 from django.db.models.loading import register_models, get_model
12 12
 from django.dispatch import dispatcher
2  django/db/models/fields/related.py
... ...
@@ -1,4 +1,4 @@

0 notes on commit 6d8e609

Please sign in to comment.
Something went wrong with that request. Please try again.