(Re-)moved some imports
This commit is contained in:
parent
61a8de6f4f
commit
d595b61aca
|
@ -155,7 +155,6 @@ class ContentType(models.Model):
|
|||
|
||||
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)
|
||||
|
||||
|
|
|
@ -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 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||
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']
|
||||
|
|
Loading…
Reference in New Issue