On Sun, 2007-12-02 at 03:05 -0800, andrej kesely wrote:
> hi,
> i have small question:
> suppose i have data in QuerySet - ['A', 'B', 'C', 'D', 'E', 'F',
> 'G'].
> I want make from this set two-column table in my template:
> 
>   A    B
>   C    D
>   E    F
>   G
> 
> What is the fastest way to do it? I don't want split the QuerySet in
> my views to something like this: [(A, B), (C, D)...] etc.
> 
> Thanks,
> Andrej Kesely

Can you just pass in QuerySet[::2] and QuerySet[1::2]?

Cheers,
Cliff



--~--~---------~--~----~------------~-------~--~----~
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