We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f95009 commit 2e3c0caCopy full SHA for 2e3c0ca
1 file changed
website/views.py
@@ -272,13 +272,14 @@ def question_answer(request):
272
notification.qid = qid
273
notification.aid = answer.id
274
notification.save()
275
- user = User.objects.get(id=question.uid)
+
276
277
# Sending email when an answer is posted and user answering the question has verified role in spoken
278
try:
279
ans_user = User.objects.get(id=answer.uid)
280
user_has_role = has_role(ans_user)
281
if user_has_role:
282
+ user = User.objects.get(id=question.uid)
283
subject = 'Question has been answered'
284
message = """
285
Dear {0}<br><br>
0 commit comments