[fix] [patch] check in_list_view for Custom DocTypes
diff --git a/patches/july_2013/p05_custom_doctypes_in_list_view.py b/patches/july_2013/p05_custom_doctypes_in_list_view.py
index 769e47a..867bead 100644
--- a/patches/july_2013/p05_custom_doctypes_in_list_view.py
+++ b/patches/july_2013/p05_custom_doctypes_in_list_view.py
@@ -2,7 +2,7 @@
 from webnotes.model import no_value_fields
 
 def execute():
-	for dt in webnotes.conn.sql("""select name from `tabDocType` where custom=1"""):
+	for dt in webnotes.conn.sql_list("""select name from `tabDocType` where custom=1"""):
 		dtbean = webnotes.bean("DocType", dt)
 		
 		if any((df.in_list_view for df in dtbean.doclist.get({"doctype": "DocField", "parent": dt}))):