Re: how to display is better?

2007-11-05 Thread [EMAIL PROTECTED]
thankss very much! this is a common situation in forum display, to display sticky post first, then recommended post, then..., then go to normal posts. On 11月5日, 下午4时55分, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-05 at 00:28 -0800, [EMAIL PROTECTED] wrote: > > i have a

Re: how to display is better?

2007-11-05 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 00:28 -0800, [EMAIL PROTECTED] wrote: > i have a queryset with 100 recoders, there are 20 recoders with > "stick=True". > so i want to display these 20 recoder first,then display other 80 > recordes. my question is: > > 1. i can write to for loop in templates, so display 20

how to display is better?

2007-11-05 Thread [EMAIL PROTECTED]
i have a queryset with 100 recoders, there are 20 recoders with "stick=True". so i want to display these 20 recoder first,then display other 80 recordes. my question is: 1. i can write to for loop in templates, so display 20 first, then display 80 with if clause. 2. i get 2 queryset in view.py,