summaryrefslogtreecommitdiffstats
path: root/askbot/urls.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-06 20:50:21 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-03-06 20:50:21 -0300
commitd13ee8aa889304ca95cbd8cc777ab5e957fbed54 (patch)
treeb2f484651b068e5df9c204fdff459633f7cd00e3 /askbot/urls.py
parentfb0df1a738d3a9dc01c5b54619f286148532c6ce (diff)
downloadaskbot-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.py15
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/$',