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, one for 20 recoders, the other for 80
recoders, then display separtely in templates file.

which is better so performance?

do you have other suggestion for displaying such recoders?

thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to