Fix loading datagrids due to recent template render compatibility changes.
Review Request #10272 — Created Oct. 24, 2018 and submitted — Latest diff uploaded
The recent changes to switch to the compatibility functions for
loading/rendering templates broke datagrids, due to an argument that was
ultimately left out of the implementation ofrender()
. The datagrid
was trying to render without using aRequestContext
, since it already
created a slimmed-down context containing necessary request information
in order to avoid performance penalties.This updates the call to explicitly use
render_to_string()
instead, so
that we can avoidRequestContext
, and returns anHttpResponse
for
that rendered content.
Verified that the dashboard loads again.