On Thursday, March 8, 2012 8:52:34 PM UTC-5, Edward Shave wrote: > > Many thanks for reply, unfortunately it didn't work in this instance... I > wonder if it is because the table is referencing itself?
By coincidence, I noticed the same problem earlier myself and opened ticket #700 http://code.google.com/p/web2py/issues/detail?id=700 . It's not just self-referencing tables; it's referencing any table that has not yet been defined. I also posted a more general solution in the ticket.