db.comment.post_id.default = post.id
form = crud.create(db.comment)

On Feb 9, 8:43 am, Tom Atkins <[email protected]> wrote:
> I have something like this which works fine:
>
>     commentform = SQLFORM(db.comment)
>             commentform.vars.post_id = post.id
>
> This populates commentform with the current post id.
>
> How can I do this with crud.create? (I know I need to use the onaccept
> method of crud.create but I'm stuck.)

Reply via email to