diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-06 20:50:21 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-06 20:50:21 -0300 |
commit | d13ee8aa889304ca95cbd8cc777ab5e957fbed54 (patch) | |
tree | b2f484651b068e5df9c204fdff459633f7cd00e3 /askbot/urls.py | |
parent | fb0df1a738d3a9dc01c5b54619f286148532c6ce (diff) | |
download | askbot-d13ee8aa889304ca95cbd8cc777ab5e957fbed54.tar.gz askbot-d13ee8aa889304ca95cbd8cc777ab5e957fbed54.tar.bz2 askbot-d13ee8aa889304ca95cbd8cc777ab5e957fbed54.zip |
added function to repost answer as comment under the latest previously posted answer
Diffstat (limited to 'askbot/urls.py')
-rw-r--r-- | askbot/urls.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/askbot/urls.py b/askbot/urls.py index a82b4694..551b9ecd 100644 --- a/askbot/urls.py +++ b/askbot/urls.py @@ -194,15 +194,22 @@ urlpatterns = patterns('', views.readers.get_comment, name='get_comment' ), - url(#post only + url( r'^comment/convert/$', views.writers.comment_to_answer, name='comment_to_answer' ), + url( + r'^answer/repost-as-comment-under-question/$', + views.writers.repost_answer_as_comment, + kwargs={'destination': 'comment_under_question'}, + name='repost_answer_as_comment_under_question' + ), url(#post only - r'^answer/convert/$', - views.writers.answer_to_comment, - name='answer_to_comment' + '^answer/repost-as-comment-under-previous-answer/$', + views.writers.repost_answer_as_comment, + kwargs={'destination': 'comment_under_previous_answer'}, + name='repost_answer_as_comment_under_previous_answer' ), url(#post only r'^answer/publish/$', |