On Monday, December 4, 2017 at 5:27:30 PM UTC-5, Val K wrote:
>
> Also, you can set  ondelete = "NO ACTION"  at field definition that is 
> referenced 
>

That will prevent the delete at the database level, but I believe it will 
result in an IntegrityError exception being thrown by the database driver, 
which will result in a web2py error ticket if you don't catch the error in 
the code. So, you would want to wrap the delete in a try/except.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to