Hi Paolo, but how do you find the tables (and records) that use the deleted record as a Foreign Key?
I don't know if those records should have the "is_active" set to False, or the Foreign Key set to None On Tuesday, 10 March 2015 07:34:22 UTC, Paolo Valleri wrote: > > ondelete is for reference field. > At a first sight, a possible workaround would be to write your own > 'ondelete' by using the _before_delete and _after_delete callbacks > > Paolo > > On Monday, March 9, 2015 at 7:09:54 PM UTC+1, Ron Chatterjee wrote: >> >> Wonder if he can try to make it a list and do list.remove? >> >> Have you tried that? >> >> On Thursday, March 20, 2014 at 3:07:47 PM UTC-4, Leonel Câmara wrote: >>> >>> I think you should have a third table anyway or searches for T-shirts of >>> a given colour will be quite slow. >>> >> -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.