2012-05-16 2 views
1

내가있어 모델을 dictsort. 내 템플릿에서는 {% for tp in timepoint_list|dictsort:"subject.sid" %}으로 목록을 반복합니다. 동일한 제목을 참조하는 여러 시간대의 순서가 예기치 않게 dictsort에서 나옵니다.속보 관계는 다음과 같이

나는 구현할 수있는 방법

답변

1

처음 TPID에 의해 정렬 시도 동일한 주제 참조 시점들에 대해 "차단기를 묶어"

{% for tp in timepoint_list|dictsort:"tpid"|dictsort:"subject.sid" %}