smartgrid uses the table's "_plural" attribute, so, before defining the
grid, you can do:
db.table2._plural = 'Table 2 Items'
You can also set this attribute when you define the table:
db.define_table('table1', ..., plural='Table 2 Items')
Anthony
On Friday, December 30, 2016 at 2:29:34 AM UTC-5, LoveWeb2py wrote:
>
> Hello,
>
> I'm calling SQLFORM grid like this:
>
> grid = SQLFORM.smartgrid(db.table1, linked_tables=[db.table2])
>
> But when SQL Grid renders it creates this Table2s
>
>
> I'd like to rename Table2s to BLAH
>
>
> How could I acommplish this? Thanks!
>
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.