Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let addendum display attributes named 'location' #774

Merged
merged 3 commits into from
Oct 3, 2023
Merged

Conversation

nonprofittechy
Copy link
Member

Currently, the default addendum calls on columns() to decide what attributes to display when iterating over objects, and in turn columns() skips any attribute named location. This was meant to avoid displaying the location attribute on an Address in addenda but it's overly broad.

This changes the behavior of columns() so it will only filter out location from Address objects or if the location attribute represents a LatitudeLongitude object.

Fix #772

…en they are address objects or lat/longitude objects
@nonprofittechy nonprofittechy merged commit 05a301e into main Oct 3, 2023
5 checks passed
@nonprofittechy nonprofittechy deleted the safe_attr branch October 3, 2023 17:22
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.

addendum safe_attr function skips location more often than it should
1 participant