Removed db.backends methods which only call super().
This commit is contained in:
parent
d7fc6eb8ca
commit
8082c75d18
|
@ -184,9 +184,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||||
atomic_transactions = False
|
atomic_transactions = False
|
||||||
supports_column_check_constraints = False
|
supports_column_check_constraints = False
|
||||||
|
|
||||||
def __init__(self, connection):
|
|
||||||
super(DatabaseFeatures, self).__init__(connection)
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def _mysql_storage_engine(self):
|
def _mysql_storage_engine(self):
|
||||||
"Internal method used in Django tests. Don't rely on this from your code"
|
"Internal method used in Django tests. Don't rely on this from your code"
|
||||||
|
|
|
@ -56,9 +56,6 @@ class DatabaseCreation(BaseDatabaseCreation):
|
||||||
'PositiveSmallIntegerField': '%(qn_column)s >= 0',
|
'PositiveSmallIntegerField': '%(qn_column)s >= 0',
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, connection):
|
|
||||||
super(DatabaseCreation, self).__init__(connection)
|
|
||||||
|
|
||||||
def _create_test_db(self, verbosity=1, autoclobber=False, keepdb=False):
|
def _create_test_db(self, verbosity=1, autoclobber=False, keepdb=False):
|
||||||
parameters = self._get_test_db_params()
|
parameters = self._get_test_db_params()
|
||||||
cursor = self.connection.cursor()
|
cursor = self.connection.cursor()
|
||||||
|
|
|
@ -5,8 +5,6 @@ from django.db.backends import BaseDatabaseOperations
|
||||||
|
|
||||||
|
|
||||||
class DatabaseOperations(BaseDatabaseOperations):
|
class DatabaseOperations(BaseDatabaseOperations):
|
||||||
def __init__(self, connection):
|
|
||||||
super(DatabaseOperations, self).__init__(connection)
|
|
||||||
|
|
||||||
def date_extract_sql(self, lookup_type, field_name):
|
def date_extract_sql(self, lookup_type, field_name):
|
||||||
# http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
|
# http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT
|
||||||
|
|
Loading…
Reference in New Issue