avoid depreciation warning from django-jinja