Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made sqlite introspection also show views like other backends

Refs #6730.
  • Loading branch information...
commit 2af58a2cef8b0d30c18f6d0d106cb0e093c673ab 1 parent 349c12d
Claude Paroz authored October 15, 2013
2  django/db/backends/sqlite3/introspection.py
@@ -59,7 +59,7 @@ def get_table_list(self, cursor):
59 59
         # generation.
60 60
         cursor.execute("""
61 61
             SELECT name FROM sqlite_master
62  
-            WHERE type='table' AND NOT name='sqlite_sequence'
  62
+            WHERE type in ('table', 'view') AND NOT name='sqlite_sequence'
63 63
             ORDER BY name""")
64 64
         return [row[0] for row in cursor.fetchall()]
65 65
 

0 notes on commit 2af58a2

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