smartgrid(...fields=dict(...))
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-08-08 15:19:18) dev
|
||||
Version 2.00.0 (2012-08-08 15:40:40) dev
|
||||
|
||||
+1
-1
@@ -2171,7 +2171,7 @@ class SQLFORM(FORM):
|
||||
query = query & constraints[table._tablename]
|
||||
if isinstance(links,dict):
|
||||
links = links.get(table._tablename,[])
|
||||
for key in 'columns,orderby,searchable,sortable,paginate,deletable,editable,details,selectable,create'.split(','):
|
||||
for key in 'columns,orderby,searchable,sortable,paginate,deletable,editable,details,selectable,create,fields'.split(','):
|
||||
if isinstance(kwargs.get(key,None),dict):
|
||||
if table._tablename in kwargs[key]:
|
||||
kwargs[key] = kwargs[key][table._tablename]
|
||||
|
||||
Reference in New Issue
Block a user