Don't use RequestContext with render_to_string

Review Request #12054 — Created Feb. 12, 2022 and submitted

david
Review Board
release-5.0.x
reviewboard

Django no longer allows passing in a RequestContext to the
render_to_string method. For the most part we had already migrated to
passing in plain dicts, but we had several template tags that were
trying to use it with the context that they received. In this case, we
can flatten that context to get a plain dict.

Ran unit tests.

Summary
Don't use RequestContext with render_to_string
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to django-3.2 (b73f908)
Loading...