How about you try this:
@auth.requires_membership('manager')
def manage():
grid = SQLFORM.smartgrid(db.image)
return locals()
Just remove the linked_tables altogether. You shouldn't have to provide
it. I typically leave it blank and only provide it when I'm trying to
prevent others from being linked. And then, when I do provide the links I
do so in a dictionary format.
linked_tables=dict(tablename=[linkedTable1, linkedTable2],
secondTableName=[linkedTable1, linkedTable2])
Let me know what you find...
-Jim
On Wed, Oct 24, 2012 at 2:25 PM, David Simmons <[email protected]>wrote:
> Hi Jim
>
> my model is:
>
> db.define_table('image',
> Field('title', unique=True),
> Field('file', 'upload'),
> format = '%(title)s')
>
> db.define_table('comment',
> Field('image_id', 'reference image'),
> Field('author'),
> Field('email'),
> Field('body', 'text'))
>
>
> I'm really hoping I'm doing something plain daft here.
>
> cheers
>
> Dave
> --
>
>
>
>
--