diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-05 01:25:52 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-03-05 01:25:52 -0300 |
commit | adbb8d22b4a322fc074b7a4f17805fea6b0bfec6 (patch) | |
tree | 12918bc00da44df4f88571748c5c6257c3b06bb6 /askbot/const | |
parent | 08d0929ae78920e5e92ae7b362a22aac9e5e99b2 (diff) | |
download | askbot-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__.py | 4 |
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 |