Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made sqlite introspection also show views like other backends

Refs #6730.
  • Loading branch information...
commit 2af58a2cef8b0d30c18f6d0d106cb0e093c673ab 1 parent 349c12d
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/sqlite3/introspection.py
View
2  django/db/backends/sqlite3/introspection.py
@@ -59,7 +59,7 @@ def get_table_list(self, cursor):
# 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()]
Please sign in to comment.
Something went wrong with that request. Please try again.