When I use auth.define_tables(username=True) fails
Traceback (most recent call last):
File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
File "/usr/home/jose/web2py/applications/csr/models/db.py", line 30,
in <module>
auth.define_tables(username=True) #
creates all needed tables
File "/usr/home/jose/web2py/gluon/tools.py", line 1075, in
define_tables
label=self.messages.label_registration_id),
File "/usr/home/jose/web2py/gluon/storage.py", line 125, in
__getattr__
value = self[key]
KeyError: 'label_registration_id'
however if I auth.define_tables() works well.
Jose