Re: [web2py] Re: Auth_user ondelete

2011-06-10 Thread Thiago Carvalho D' Ávila
It worked out, thanks! Thread closed. 2011/6/9 Anthony abasta...@gmail.com On Thursday, June 9, 2011 6:59:34 PM UTC-4, Thiago wrote: I have this auth_user table, and another table called activities. This activities have 2 fields that are foreing keys to user (created by and modified by). If

[web2py] Auth_user ondelete

2011-06-09 Thread Thiago Carvalho D' Ávila
Hi, I'm new to web2py, but familiar to similar frameworks. I have a system that uses web2py builtin auth_user table. The problem is that I wanna use ondelete='NO ACTION' in my app (it is CASCADE by default), and I don't know how to put it in the model file. Anyone can help? Att. Thiago

Re: [web2py] Re: Auth_user ondelete

2011-06-09 Thread Thiago Carvalho D' Ávila
I have this auth_user table, and another table called activities. This activities have 2 fields that are foreing keys to user (created by and modified by). If I delete any user that created or modified one activity, the activity is deleted. Do I have to put NO ACTION in all fields that is foreign