summaryrefslogtreecommitdiffstats
path: root/askbot/management/commands/send_unanswered_question_reminders.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/management/commands/send_unanswered_question_reminders.py')
-rw-r--r--askbot/management/commands/send_unanswered_question_reminders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/management/commands/send_unanswered_question_reminders.py b/askbot/management/commands/send_unanswered_question_reminders.py
index 778a8575..b65e2a72 100644
--- a/askbot/management/commands/send_unanswered_question_reminders.py
+++ b/askbot/management/commands/send_unanswered_question_reminders.py
@@ -25,14 +25,14 @@ class Command(NoArgsCommand):
)
questions = models.Question.objects.exclude(
- closed = True
+ thread__closed = True
).exclude(
deleted = True
).added_between(
start = schedule.start_cutoff_date,
end = schedule.end_cutoff_date
).filter(
- answer_count = 0
+ thread__answer_count = 0
).order_by('-added_at')
#for all users, excluding blocked
#for each user, select a tag filtered subset