Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix w.u.c.render_to_string with request=None
When passed `request=None`, `wagtail.utils.compat.render_to_string` would fail as it tried to construct a `RequestContext` without a request. Now, if `request=None,` no RequestContext is constructed, and no `context_instance` is passed to `render_to_string`.
- Loading branch information