Skip to content

Only use Grid.FORMATTERS_BY_TYPE if field.represent is default#999

Closed
laundmo wants to merge 1 commit into
web2py:masterfrom
laundmo:fix-grid-represent
Closed

Only use Grid.FORMATTERS_BY_TYPE if field.represent is default#999
laundmo wants to merge 1 commit into
web2py:masterfrom
laundmo:fix-grid-represent

Conversation

@laundmo
Copy link
Copy Markdown
Contributor

@laundmo laundmo commented Sep 3, 2025

Fixes b279482 which completely broke field.represent for reference fields in Grid

This only uses Grid.FORMATTERS_BY_TYPE when the user did not set a custom field.represent by checking field.represent against the default represent functions from pydal.

@laundmo laundmo closed this Sep 16, 2025
@laundmo
Copy link
Copy Markdown
Contributor Author

laundmo commented Sep 16, 2025

closed due to being fixed otherwise

@laundmo laundmo deleted the fix-grid-represent branch September 16, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant