Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(Re-)moved some imports

  • Loading branch information...
commit d595b61acae91e6111ec26cb0a4a1b1a9f4eb0d5 1 parent 61a8de6
@claudep claudep authored
View
1  django/contrib/contenttypes/models.py
@@ -155,7 +155,6 @@ def __str__(self):
def model_class(self):
"Returns the Python model class for this type of content."
- from django.db import models
return models.get_model(self.app_label, self.model,
only_installed=False)
View
3  django/db/backends/oracle/creation.py
@@ -1,5 +1,7 @@
import sys
import time
+
+from django.conf import settings
from django.db.backends.creation import BaseDatabaseCreation
from django.utils.six.moves import input
@@ -105,7 +107,6 @@ def _create_test_db(self, verbosity=1, autoclobber=False):
print("Tests cancelled.")
sys.exit(1)
- from django.db import settings
real_settings = settings.DATABASES[self.connection.alias]
real_settings['SAVED_USER'] = self.connection.settings_dict['SAVED_USER'] = self.connection.settings_dict['USER']
real_settings['SAVED_PASSWORD'] = self.connection.settings_dict['SAVED_PASSWORD'] = self.connection.settings_dict['PASSWORD']
Please sign in to comment.
Something went wrong with that request. Please try again.