Skip to content

Commit

Permalink
Made sqlite introspection also show views like other backends
Browse files Browse the repository at this point in the history
Refs #6730.
  • Loading branch information
claudep committed Oct 15, 2013
1 parent 349c12d commit 2af58a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/backends/sqlite3/introspection.py
Expand Up @@ -59,7 +59,7 @@ def get_table_list(self, cursor):
# generation. # generation.
cursor.execute(""" cursor.execute("""
SELECT name FROM sqlite_master 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""") ORDER BY name""")
return [row[0] for row in cursor.fetchall()] return [row[0] for row in cursor.fetchall()]


Expand Down

0 comments on commit 2af58a2

Please sign in to comment.