2
I am with the following problem, I am producing an application in W2P, with a CRUD, on the part of deleting an item I am wanting to get the id through a form and that id remove the item the DB.
I’m trying through this code
def erase():
form = FORM('Informe o ID do item que deseja remover', INPUT(_name='id'), INPUT(_type='submit'))
db(lista.id==request.args(0, cast=int)).delete()
return dict(form=form)