On Dec 2, 1:05 pm, andrej kesely <[EMAIL PROTECTED]> 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.
Multi-column data is not yet supported by newforms. Until we needed it, I never noticed. But we have recently got an order to build in-house sales order processing database, with a lot of table-like data (rows, columns) to be edited online. So we decided to extend newforms, to allow us to do it. There are no documentation, no examples, and not yet final version. But code is available here: svn co http://svn.halogen-dg.com/svn/repos/DjHDGutils/trunk DjHDGutils there are file DjHDGutils/newforms.py where we store our company extensions to newforms. And a class BaseTable which makes it possible to edit table data. It is already (successfully) working in our application, and I will try to provide some documentation & examples on that soon. Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---