diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-14 14:06:21 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-14 14:06:21 -0400 |
commit | 2f413b2eba242e050bf33e545be875ada0c67bcf (patch) | |
tree | d993e605e1545c7be2270acfde705f0138f7dae8 | |
parent | 73dd719640f4aa3efb71da03f058553ee90bf7d2 (diff) | |
download | askbot-2f413b2eba242e050bf33e545be875ada0c67bcf.tar.gz askbot-2f413b2eba242e050bf33e545be875ada0c67bcf.tar.bz2 askbot-2f413b2eba242e050bf33e545be875ada0c67bcf.zip |
fixed a bug on answer edit
-rw-r--r-- | askbot/views/writers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/askbot/views/writers.py b/askbot/views/writers.py index 56b37154..0649a331 100644 --- a/askbot/views/writers.py +++ b/askbot/views/writers.py @@ -426,6 +426,8 @@ def edit_answer(request, id): ) else: form = forms.EditAnswerForm(answer, latest_revision, request.POST) + revision_form = forms.RevisionForm(answer, latest_revision) + if form.is_valid(): if form.has_changed(): request.user.edit_answer( |