Hi I am trying to update the records in my database for a field that is
linked. I have two entries in the table channel. When I edited channel_name
field I expected everything would have changed (because it is linked). but
it did not. How do I go about changing the data?

*cheers


db.define_table('channel',
    Field('channel_name'))

db.define_table('schedule',

Field('userinfo',db.auth_user,default=auth.user_id,readable=False,writable=False),
    Field('show',db.show,requires=IS_IN_DB(db,db.show.id,'%(title)s')),
    Field('channel',requires=IS_IN_DB(db,db.channel.channel_name)),
    Field('hour',requires=IS_IN_DB(db,db.time.hour,'%(hour)s')),
    Field('min', label='Minute', default='00'),
    Field('daytime',requires=IS_IN_DB(db,db.daytime.time)),
    Field('date','date',requires=IS_NOT_EMPTY()))

Reply via email to