fix #178: incorrect variable name in template

This commit is contained in:
slav0nic 2011-04-08 10:16:57 +03:00
parent fb709fb224
commit 8d71e58b59
2 changed files with 3 additions and 5 deletions

View file

@ -4,20 +4,18 @@
{% block content %}
<div class="blockform">
<h2><span>{% trans "Send e-mail to" %} {{ user }}</span></h2>
<h2><span>{% trans "Send e-mail to" %} {{ mailto }}</span></h2>
<div class="box">
<form id="email" method="post">
{% csrf_token %}
<div class="inform">
<fieldset>
<legend>{% trans "Write and submit your e-mail message" %}</legend>
<div class="infldset txtarea">
<label><strong>{{ form.subject.label }}</strong><br />
{{ form.subject }}<br /></label>
<label><strong>{{ form.body.label }}</strong><br />
{{ form.body }}<br /></label>
<p>{% trans "Please note that by using this form, your e-mail address will be disclosed to the recipient." %}</p>
</div>
</fieldset>

View file

@ -238,10 +238,10 @@ def misc(request):
return HttpResponseRedirect(reverse('djangobb:index'))
elif 'mail_to' in request.GET:
user = get_object_or_404(User, username=request.GET['mail_to'])
mailto = get_object_or_404(User, username=request.GET['mail_to'])
form = MailToForm()
return {'form':form,
'user': user,
'mailto': mailto,
'TEMPLATE': 'forum/mail_to.html'
}