Skip to content
Browse files

Made sqlite introspection also show views like other backends

Refs #6730.
  • Loading branch information...
1 parent 349c12d commit 2af58a2cef8b0d30c18f6d0d106cb0e093c673ab @claudep claudep committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/backends/sqlite3/
2 django/db/backends/sqlite3/
@@ -59,7 +59,7 @@ def get_table_list(self, cursor):
# generation.
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()]

0 comments on commit 2af58a2

Please sign in to comment.
Something went wrong with that request. Please try again.