From 2a09d3708777116daedc548078a662086552523f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 24 Oct 2017 16:55:08 -0700 Subject: [PATCH] Allow views to be browsed as well as tables --- templates/database.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/database.html b/templates/database.html index f8e62230..bb422d6d 100644 --- a/templates/database.html +++ b/templates/database.html @@ -20,7 +20,7 @@ td { {% for td in row %} - {% if loop.index == 2 and row.type == "table" %} + {% if loop.index == 2 and row.type in ("table", "view") %} {{ td }} {% else %} {{ td }}