You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the model has defined autodelete=True, and the callback retirns True the register in the dal will not be deleted, but the files in uploads/ desapears.
# -*- coding: utf-8 -*-defindex():
returndict(message="hello from img.py")
defadd():
form=SQLFORM(db.img).process()
returndict(f=form)
defgrid():
grid=SQLFORM.grid(db.img, user_signature=False)
returndict(grid=grid)
# add at least 2 registers# delete 1# go to de grid, you will see the 2registers.# try to see the attachment
The text was updated successfully, but these errors were encountered:
When the model has defined
autodelete=True,
and the callback retirnsTrue
the register in the dal will not be deleted, but the files inuploads/
desapears.Model
Controller
The text was updated successfully, but these errors were encountered: