bugfix comment notification
This commit is contained in:
@@ -29,12 +29,14 @@
|
|||||||
</tr><tr>
|
</tr><tr>
|
||||||
<th>Weight Category:</th><td>{{ workout.weightcategory }}</td>
|
<th>Weight Category:</th><td>{{ workout.weightcategory }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% if user.is_authenticated %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>Comments</th>
|
<th>Comments</th>
|
||||||
<td>
|
<td>
|
||||||
<a href="/rowers/workout/{{ workout.id }}/comment">Comment</a>
|
<a href="/rowers/workout/{{ workout.id }}/comment">Comment</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h1>Workout Summary</h1>
|
<h1>Workout Summary</h1>
|
||||||
|
|||||||
@@ -3341,12 +3341,12 @@ def workout_comment_view(request,id=0):
|
|||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
res = handle_sendemailnewcomment.delay(r.user.first_name,
|
res = handle_sendemailnewcomment.delay(r.user.first_name,
|
||||||
r.user.last_name,
|
r.user.last_name,
|
||||||
r.user.email,
|
r.user.email,
|
||||||
c.user.first_name,
|
request.user.first_name,
|
||||||
request.user.last_name,
|
request.user.last_name,
|
||||||
comment,w.name,
|
comment,w.name,
|
||||||
w.id)
|
w.id)
|
||||||
|
|
||||||
elif request.user != r.user:
|
elif request.user != r.user:
|
||||||
res = queuehigh.enqueue(handle_sendemailnewcomment,r.user.first_name,
|
res = queuehigh.enqueue(handle_sendemailnewcomment,r.user.first_name,
|
||||||
r.user.last_name,
|
r.user.last_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user