Okay then which way do u recommend that i should follow in case
i need to displays objects with different no of properties
Example obj has propA and PropB
{{obj.propA}}
{{obj.propB}}
would work but i want it to be dynamic since the no and name of properties may
vary..
I tried writing all the properties of an object in a list and passing that list
obj to template
but it seems this is not just possible.. since
{% for prop in properties %}
<td>{{obj}}+{{.prop}}</td>
{% endfor %}
or other things similar to above do not work
Any suggestions..
> Date: Tue, 9 Aug 2011 17:25:42 -0400
> Subject: Re: How to concatenate two variables in a template for evaluation..
> From: [email protected]
> To: [email protected]
>
> You have to write it as {{ obj.title }} in your template. Django
> templates are designed to allow very little in the way of logic; that
> should take place in your views.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> 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.
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.