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
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
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,
3 matches
Mail list logo