it's in the Shell. In the controller functions it works fine.
On 16 фев, 22:13, LightOfMooN <vladsale...@yandex.ru> wrote: > shop = db(db.shops.id==8).select().first() > > shop > <Row {'verified': True, 'name': 'romashka', 'title': '\xd0\xa0\xd0\xbe > \xd0\xbc\xd0\xb0\xd1\x88\xd0\xba\xd0\xb0', 'globalsearch': False, > 'delete_key': '', 'owner': 2, 'active': False, 'id': 8, 'deletedate': > None}> > > shop.update_record(active=True) > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/contrib/shell.py", line 225, in > run > exec compiled in statement_module.__dict__ > File "<string>", line 1, in <module> > File "/home/www-data/web2py/gluon/dal.py", line 3241, in __getattr__ > return self[key] > File "/home/www-data/web2py/gluon/dal.py", line 3232, in __getitem__ > return dict.__getitem__(self, key) > KeyError: 'update_record' > > It workes fine on 1.91.6