I found out the problem, i had to use auth.define_tables(migrate=False), as auth tables are already defined.

On Fri, 16 Dec 2011 03:16:58 +0530, Cliff <[email protected]> wrote:

Both auth_user tables contain the "org" field with an identical
definition, right?

On Dec 15, 1:49 pm, "Chandrakant Kumar" <[email protected]> wrote:
I'm trying to establish one to many relation with auth_user, but i'm
getting this error:

Traceback (most recent call last):
   File "/home/chandra/dev/web2py/gluon/restricted.py", line 194, in
restricted
     exec ccode in environment
   File "/home/chandra/dev/web2py/applications/jobs/models/db.py", line 15,
in <module>
     Field('org', db.auth_user),
   File "/home/chandra/dev/web2py/gluon/dal.py", line 4511, in __getattr__
     return self[key]
   File "/home/chandra/dev/web2py/gluon/dal.py", line 4505, in __getitem__
     return dict.__getitem__(self, str(key))
KeyError: 'auth_user'


Reply via email to