From 2af58a2cef8b0d30c18f6d0d106cb0e093c673ab Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 15 Oct 2013 17:17:32 +0200 Subject: [PATCH] Made sqlite introspection also show views like other backends Refs #6730. --- django/db/backends/sqlite3/introspection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/sqlite3/introspection.py b/django/db/backends/sqlite3/introspection.py index 55e68c34b9..6ebc572e0c 100644 --- a/django/db/backends/sqlite3/introspection.py +++ b/django/db/backends/sqlite3/introspection.py @@ -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()]