diff options
-rw-r--r-- | askbot/management/commands/fill_test_content_db.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/askbot/management/commands/fill_test_content_db.py b/askbot/management/commands/fill_test_content_db.py index 11a838ff..ccd37118 100644 --- a/askbot/management/commands/fill_test_content_db.py +++ b/askbot/management/commands/fill_test_content_db.py @@ -220,4 +220,11 @@ class Command(NoArgsCommand): ) self.print_if_verbose("User has edited the active question comment") + # Accept best answer + active_question.author.accept_best_answer( + answer = active_answer, + force = True, + ) + self.print_if_verbose("User has accepted a best answer") + self.print_if_verbose("DONE") |