mirror of
				https://github.com/django/django.git
				synced 2025-10-30 09:06:13 +00:00 
			
		
		
		
	Tweaked the dummy database backend initialisation.
In order to report more comphrehensible tracebacks, remove the super() constructor call, since passing args to object.__init__ ends badly. So some subclassing possibilities are now removed, but it's the "dummy" backend, so we can make some compromises. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -28,22 +28,20 @@ class DatabaseOperations(BaseDatabaseOperations): | |||||||
|  |  | ||||||
| class DatabaseClient(BaseDatabaseClient): | class DatabaseClient(BaseDatabaseClient): | ||||||
|     runshell = complain |     runshell = complain | ||||||
|      |  | ||||||
| class DatabaseIntrospection(BaseDatabaseIntrospection): | class DatabaseIntrospection(BaseDatabaseIntrospection): | ||||||
|     get_table_list = complain |     get_table_list = complain | ||||||
|     get_table_description = complain |     get_table_description = complain | ||||||
|     get_relations = complain |     get_relations = complain | ||||||
|     get_indexes = complain |     get_indexes = complain | ||||||
|      |  | ||||||
| class DatabaseWrapper(object):     | class DatabaseWrapper(object): | ||||||
|     operators = {} |     operators = {} | ||||||
|     cursor = complain |     cursor = complain | ||||||
|     _commit = complain |     _commit = complain | ||||||
|     _rollback = ignore |     _rollback = ignore | ||||||
|  |  | ||||||
|     def __init__(self, *args, **kwargs): |     def __init__(self, *args, **kwargs): | ||||||
|         super(DatabaseWrapper, self).__init__(*args, **kwargs) |  | ||||||
|  |  | ||||||
|         self.features = BaseDatabaseFeatures() |         self.features = BaseDatabaseFeatures() | ||||||
|         self.ops = DatabaseOperations() |         self.ops = DatabaseOperations() | ||||||
|         self.client = DatabaseClient(self) |         self.client = DatabaseClient(self) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user