My smartgrids are all failing when I have fields from multiple tables specified in the 'fields' argument.
Traceback (most recent call last):
File "C:\dev\web2py\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "C:/dev/web2py/applications/infocenter/controllers/administration.py", line 2360, in <module>
File "C:\dev\web2py\gluon\globals.py", line 194, in <lambda>
self._caller = lambda f: f()
File "C:\dev\web2py\gluon\tools.py", line 3022, in f
return action(*a, **b)
File "C:/dev/web2py/applications/infocenter/controllers/administration.py", line 702, in permissions
paginate=15, maxtextlength=45)
File "C:\dev\web2py\gluon\sqlhtml.py", line 2679, in smartgrid
user_signature=user_signature, **kwargs)
File "C:\dev\web2py\gluon\sqlhtml.py", line 2377, in grid
value = row[str(field)]
File "C:\dev\web2py\gluon\dal.py", line 6865, in __getitem__
return ogetattr(self, key)
AttributeError: 'Row' object has no attribute 'description'
Description is a field on a referenced table that is included in the fields argument. Worked until upgrade to 2.5.1.