diff options
author | Dejan Noveski <dr.mote@gmail.com> | 2011-11-24 01:26:21 +0100 |
---|---|---|
committer | Dejan Noveski <dr.mote@gmail.com> | 2011-11-24 01:26:21 +0100 |
commit | 7a1a385a20f144bfa6051ceb6f4a0033f51cd13f (patch) | |
tree | 05d94a2584050831a8bdd095b0d539e6da69fd9d | |
parent | 929014e8016addc3d5c9a304683888b75d20cd37 (diff) | |
download | askbot-7a1a385a20f144bfa6051ceb6f4a0033f51cd13f.tar.gz askbot-7a1a385a20f144bfa6051ceb6f4a0033f51cd13f.tar.bz2 askbot-7a1a385a20f144bfa6051ceb6f4a0033f51cd13f.zip |
Accept a best answer at the end
-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") |