Fix Django deprecation warning

Django 1.9 deprecates passing a context directly to the render function
in template loader. This commit creates a proper template rendering
context before rendering the mails sent from the contact form.
This commit is contained in:
Jan Dittberner 2016-01-09 14:46:04 +00:00
parent b8893e92d7
commit de501cfdde
2 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,4 @@
User {{ name }} <{{ email }}> from IP address {{ request.META.REMOTE_ADDR }}
User {{ name }} <{{ email }}> from IP address {{ remote_ip }}
sent the following message via the contact form at
{{ site }}{% url 'contact_form' %}: