You can explicitly specify the id field of a table:
Field('id', type='id', ...)
And you can even give it a different name:
Field('myid', type='id', ...)
See http://web2py.com/books/default/chapter/29/6?search=named+id+field.
But why do you want to set ondelete for an id field -- it's supposed to be
used for reference fields?
Anthony
On Sunday, May 27, 2012 6:57:31 AM UTC-4, rahulserver wrote:
>
> How should i specify ondelete='Cascade' on the id attribute of the parent
> table, since we do not usually specify the id attribute in web2py tables.
>