ограничить число тегов в навигации слева
This commit is contained in:
@@ -75,8 +75,8 @@ def index(request,
|
|||||||
" GROUP BY tPageInfo.id, tPageInfo.NumInPage,"
|
" GROUP BY tPageInfo.id, tPageInfo.NumInPage,"
|
||||||
" tTotalInfo.id, tTotalInfo.NumTotal,"
|
" tTotalInfo.id, tTotalInfo.NumTotal,"
|
||||||
" tTotalInfo.name, tTotalInfo.slug "
|
" tTotalInfo.name, tTotalInfo.slug "
|
||||||
"ORDER BY tPageInfo.NumInPage DESC, tTotalInfo.name,"
|
"ORDER BY tPageInfo.NumInPage DESC, tTotalInfo.NumTotal DESC, "
|
||||||
" tTotalInfo.NumTotal DESC" % (query,))
|
"tTotalInfo.name LIMIT 20" % (query,))
|
||||||
to_template.update({"LENTA": q_content, "TAGS_IN_PAGE": q_tags})
|
to_template.update({"LENTA": q_content, "TAGS_IN_PAGE": q_tags})
|
||||||
to_template.update({"PAGE_OF_LIST": int(ppage)})
|
to_template.update({"PAGE_OF_LIST": int(ppage)})
|
||||||
query_count = "SELECT 1 AS id," \
|
query_count = "SELECT 1 AS id," \
|
||||||
|
|||||||
Reference in New Issue
Block a user