Django Book 翻译
菜单>:
TOC
返回
原文:
Note that ``{% regroup %}`` does not work when the list to be grouped is not sorted by the key you are grouping by! This means that if your list of people was not sorted by gender, youd need to make sure it is sorted before using it, that is:
翻译:
记住,如果被分组的列表不是按照某一列排好序的话,你就不能用 ``{% regroup %}`` 在这一列上进行重新分组!就是说如果人的列表不是按照性别排好序的话,在用它之前就要先对它排序,即:
备注:
译者: