What do you have in the form.accepts?.
On Apr 8, 5:05 am, Johann Spies <[email protected]> wrote: > I have two controllers using the same table. One for the logged in user to > register for a course and the other for the administrator to register a > user for a course overriding the 'writable=False in the model: > The model has: > > db.define_table('t_registration_form', > Field('f_attendee', db.auth_user,default=auth.user_id, > label=T('Attendee'),writable=False,readable=True), > > The only difference between the two controllers is this: > > form=crud.create(db.t_registration_form,next='registration_form_read/[id]') > # for the logged in user > > form=SQLFORM(db.t_registration_form,next='registration_form_read/[id]', > ignore_rw=True) # for the administrator > > Both use identical views using a custom form layout. > > My problem is that the second controller never inserts the form in the table > and does not complain while the first one works as expected. > > Why would that be. BTW, using response.flash(form.errors) does not help in > this case. > > Johann > > -- > May grace and peace be yours in abundance through the full knowledge of God > and of Jesus our Lord! His divine power has given us everything we need for > life and godliness through the full knowledge of the one who called us by > his own glory and excellence. > 2 Pet. 1:2b,3a

