Goodday,
I have an app which redirects to mini sites based on an 'event' argument in
the url like so http://0.0.0.0/app/c/login?event=event1(will take you
event1 themed page)
The problem is when the logged in users session is timed out, the user is
returned to http://0.0.0.0/a/c/login?_next=/
I have a db_agents model:
*
*
db.define_table('agents',
Field('user_id', db.auth_user),
Field('event_instance_id', db.event_instance), # this is the line
giving the error
Field('code')
)
db.agents.user_id.requires = IS_IN_DB(db, db.auth_user.id, '%(username)s')
db.agents.event_instan
I keep getting this error: *'DAL' object has no attribute 'event_instance'*
it points to my db_agents file as the culprit on this line:
('event_instance_id', db.event_instance)
However if I move the definition of the event_instance table to that
db_agents model file the error disappears, but
I keep getting this error: *'DAL' object has no attribute 'event_instance'*
it points to my db_agents file as the culprit on this line:
('event_instance_id', db.event_instance)
However if I move the definition of the event_instance table to that
db_agents model file the error disappears, but
4 matches
Mail list logo