On Wed, Nov 11, 2009 at 6:48 AM, andreas schmid <a.schmi...@gmail.com>wrote:

>
> i would need something like:
>
>             jan   feb   mar   apr   may
> 2007     [...]   [...]   [...]   [...]    [...]
> 2008     [...]   [...]   [...]   [...]    [...]
> 2008     [...]   [...]   [...]   [...]    [...]
>
> i dont think a formset would be the right way to go in this case (but
> maybe im wrong).
>
>
I think a formset is the right approach.  I'm working on something like this
right now.  One slightly tricky bit was to get the fields to be in rows
instead of one long column.  The solution looks like this in the template:

{% for field in form.visible_fields %}
    <td>{{ field }}</td>
{% endfor %}

Now I'm trying to figure out how to get the "year" column data into the
form, dynamically from a model.

Nick

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to