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:
parent
b8893e92d7
commit
de501cfdde
2 changed files with 9 additions and 4 deletions
|
@ -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' %}:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue