Merge pull request #898 from ilvalle/issue-896
fix web2py/web2py#896, avoid to select blob fields in sqlform.grid
This commit is contained in:
+1
-1
@@ -2148,7 +2148,7 @@ class SQLFORM(FORM):
|
|||||||
else:
|
else:
|
||||||
fields = []
|
fields = []
|
||||||
columns = []
|
columns = []
|
||||||
filter1 = lambda f: isinstance(f, Field)
|
filter1 = lambda f: isinstance(f, Field) and f.type != 'blob'
|
||||||
filter2 = lambda f: isinstance(f, Field) and f.readable
|
filter2 = lambda f: isinstance(f, Field) and f.readable
|
||||||
for table in tables:
|
for table in tables:
|
||||||
fields += filter(filter1, table)
|
fields += filter(filter1, table)
|
||||||
|
|||||||
Reference in New Issue
Block a user