summaryrefslogtreecommitdiffstats
path: root/askbot/const
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-03-05 01:25:52 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-03-05 01:25:52 -0300
commitadbb8d22b4a322fc074b7a4f17805fea6b0bfec6 (patch)
tree12918bc00da44df4f88571748c5c6257c3b06bb6 /askbot/const
parent08d0929ae78920e5e92ae7b362a22aac9e5e99b2 (diff)
downloadaskbot-adbb8d22b4a322fc074b7a4f17805fea6b0bfec6.tar.gz
askbot-adbb8d22b4a322fc074b7a4f17805fea6b0bfec6.tar.bz2
askbot-adbb8d22b4a322fc074b7a4f17805fea6b0bfec6.zip
cache invalidation on the question page seems to work
Diffstat (limited to 'askbot/const')
-rw-r--r--askbot/const/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py
index ddbff836..66e20dae 100644
--- a/askbot/const/__init__.py
+++ b/askbot/const/__init__.py
@@ -50,6 +50,10 @@ POST_SORT_METHODS = (
('votes-asc', _('least voted')),
('relevance-desc', _('relevance')),
)
+
+ANSWER_SORT_METHODS = (#no translations needed here
+ 'latest', 'oldest', 'votes'
+)
#todo: add assertion here that all sort methods are unique
#because they are keys to the hash used in implementations
#of Q.run_advanced_search