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

fixes a bug that caused loss of ancestor of parent field in _flatten_… #36

Merged
merged 1 commit into from Jun 23, 2021

Conversation

paveloder
Copy link

Fixes a problem that happened while flattening headers from nested serialisers. Example response:

{
   "address": {
      "client": {
         "name": "foo",
         "id": 1
   }
}

Renderer put only client.name and client.id to header names. And returned empty data for those fields. This PR fixes this.

@FlipperPA
Copy link
Member

@paveloder I've merged in your pull request along with #35, which created a conflict between them. I think I've sorted out both properly, but could you please run a test against the latest on the main branch before I push out a release and confirm that it works?

@paveloder
Copy link
Author

@FlipperPA looks like problem is fixed now, the example data now renders correctly. Thanks.

@FlipperPA
Copy link
Member

Thanks for the PR! This has been released in version 0.4.1: https://pypi.org/project/drf-renderer-xlsx/0.4.1/

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.

None yet

2 participants