etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.2k stars 130 forks source link

RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext. #194

Closed NotSqrt closed 7 years ago

NotSqrt commented 7 years ago

Hi,

The search_results and search_result_item template tags use the context to call render_to_string, which would prefer a dict instead of a RequestContext ...

It's possible to call context.flatten() to get a dict.

Thanks !

etianen commented 7 years ago

I'll take a pull request for this, or look into it myself when Django 1.11 lands.