Skip to content

Commit

Permalink
Merge pull request #2029 from onaio/data-detail-page-renderer-fixes
Browse files Browse the repository at this point in the history
Fix "Different root node name" issue
  • Loading branch information
DavisRayM committed Mar 2, 2021
2 parents 87d2f32 + ed30fb0 commit ecd65e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onadata/libs/renderers/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ def render(self, data, accepted_media_type=None, renderer_context=None):
if data is None:
return ""

if not isinstance(data, list):
return data

stream = StringIO()

xml = SimplerXMLGenerator(stream, self.charset)
Expand Down

0 comments on commit ecd65e6

Please sign in to comment.