Ok I've found the problem.

You have 2 IS_IN_DB validator calls where you use db.address.id and 
db.phone_number_kind.id instead of "address.id" and "phone_number_kind.id"

But the bigger problem is that you are enabling record versioning for all 
tables which pretty much makes them all load.

Instead of this you can add an on_define to each table where you turn 
record versioning on for that specific table.

def toggle_versioning(table):
    table._enable_record_versioning()

db.define_table('my_versioned_table',
    Field('name'),
    on_define=toggle_versioning
)




By the way why are you defining auth tables in your model and then calling 
auth.define_tables to define them again, also consider using auth.signature 
instead of tables_generic_fields.

-- 
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