Sunday, November 15, 2009

Stucked in template language

Hi there,

we have models like this:

1. A car database with freely assignable attributes.
2. An attribute-type table (ex: color, engine, seats)
3. Car attributes (ex: color:red, seats: 5) variable car by car

We have to display a matrix of cars (rows) with different attributes
(columns), but not every attribute is assigned to every car (empty cell
in the table), columns are flexible...so if at least one car has a
'seats' attribute, there will be such column.

In the template i cannot decide if specific attribute is assigned to a
car or not, because i cant pass parameter to method call.

How can i override this?

Thanks in advance,
Charlie.

--

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate