Hallöchen!
Arien writes:
> On Tue, Jul 15, 2008 at 2:08 PM, Arien <[EMAIL PROTECTED]> wrote:
>
>> Oh, I see, you want the verbose_name of each field. I suppose
>> you could write a templatetag that you could use like this:
>>
>> <td>{% verbose_name layer.heating_temperature %}</td>
>> <td>{{ layer.heating_temperature }}</td>
>>
>> After parsing the templatetag's argument, you'd resolve the model
>> instance and insert this in the template:
>>
>> model_instance._meta.get_field(field_name).verbose_name
>
> The basic idea (and only that):
>
> [...]
I had to specialise it slightly to my situation because I don't have
all models in the template context, but it worked eventually.
Thanks again!
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---