a few fixes on comments
This commit is contained in:
@@ -3641,7 +3641,7 @@ def workout_comment_view(request,id=0):
|
||||
notification = cd['notification']
|
||||
c = WorkoutComment(workout=w,user=request.user,comment=comment,
|
||||
notification=notification)
|
||||
c.save()
|
||||
c.save()
|
||||
if settings.DEBUG and request.user != r.user:
|
||||
res = handle_sendemailnewcomment.delay(r.user.first_name,
|
||||
r.user.last_name,
|
||||
@@ -3661,7 +3661,7 @@ def workout_comment_view(request,id=0):
|
||||
comment,w.name,w.id)
|
||||
|
||||
commenters = {oc.user for oc in comments if oc.notification}
|
||||
for u in commenters:
|
||||
for u in commenters:
|
||||
if settings.DEBUG and u != request.user and u != r.user:
|
||||
res = handle_sendemailnewresponse.delay(u.first_name,
|
||||
u.last_name,
|
||||
@@ -3671,7 +3671,7 @@ def workout_comment_view(request,id=0):
|
||||
comment,
|
||||
w.name,
|
||||
w.id,
|
||||
c.id)
|
||||
c.id)
|
||||
elif u != request.user and u != r.user:
|
||||
res = queuelow.enqueue(handle_sendemailnewresponse,
|
||||
u.first_name,
|
||||
@@ -3683,6 +3683,10 @@ def workout_comment_view(request,id=0):
|
||||
w.name,
|
||||
w.id,
|
||||
c.id)
|
||||
|
||||
url = reverse(workout_comment_view,kwargs = {
|
||||
'id':id})
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
form = WorkoutCommentForm()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user