mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Made sqlite introspection also show views like other backends
Refs #6730.
This commit is contained in:
		| @@ -59,7 +59,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): | ||||
|         # generation. | ||||
|         cursor.execute(""" | ||||
|             SELECT name FROM sqlite_master | ||||
|             WHERE type='table' AND NOT name='sqlite_sequence' | ||||
|             WHERE type in ('table', 'view') AND NOT name='sqlite_sequence' | ||||
|             ORDER BY name""") | ||||
|         return [row[0] for row in cursor.fetchall()] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user