Try changing the route for the edit button with routes.py, and before
create your own controller with the form edit and the grid
El 27/10/2012 09:45, "Santiago Avendaño" <[email protected]> escribió:
> Hello,
>
> My example app has two models.
>
> db.define_table('person', Field('name'))
> db.define_table('dog', Field('name'), Field('owner',db.person))
>
> In controller/default.py I define this method:
>
> def manage_person():
> form = SQLFORM.grid(db.person)
> return dict(form=form)
>
> This code render the table of persons. When I click on edit button in a
> row, the app goes to the person edit page.
>
> Inside this page I want to add a SQLFORM.grid of dogs owned by this
> person, to allow add dogs, since I edit person.
>
> How can I do that?
>
>
>
>
> --
>
>
>
>
--