summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-10-15 17:17:32 +0200
committerClaude Paroz <claude@2xlibre.net>2013-10-15 17:20:03 +0200
commit2af58a2cef8b0d30c18f6d0d106cb0e093c673ab (patch)
tree3b6c0233ea7e098968edd0c97b8081dfc0ca9e6e
parent349c12d3f5c015c2f8b36917da21230c2ac1acb4 (diff)
Made sqlite introspection also show views like other backends
Refs #6730.
-rw-r--r--django/db/backends/sqlite3/introspection.py2
1 files changed, 1 insertions, 1 deletions
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()]