Ticket #1820 (closed defect: fixed)
crud list produces error NoSuchColumnError for some tables
| Reported by: | dakila | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0.* bugfix |
| Component: | TurboGears | Version: | trunk |
| Severity: | normal | Keywords: | crud, dbsprockets |
| Cc: |
Description
to reproduce NoSuchColumnError? creating a quickstarted project in tg2 and running crud for model User which has a many to many relation to Group will produce the traceback error when accessed via browser, in this case it will output a traceback
NoSuchColumnError: "Could not locate column in row for column 'tg_groups'"
the select method by provider does not take into account the table dependency, however the associated widget will look for the tg_group resulting in the error above. This can be partially resolved by using the getTableValue method instead of provider.select
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

small patch to use the getTableValue