Fabio Natali wrote: [...] > This is an excerpt from my models.py: > > from django.db import models > from django.contrib import admin > from django.utils.translation import ugettext_lazy as _ > > class Fornitore(models.Model): > nome = models.CharField(max_length=30) > indirizzo = models.CharField(max_length=60) > > def __unicode__(self): > return self.nome > > class Meta: > verbose_name_plural = _('Fornitori')
> To make it short: how can I access verbose_name from templates? Dear all, a quick update. If I write class Meta: verbose_name = _('Fornitore') verbose_name_plural = _('Fornitori') I get >>> get_models(arteak.management.models)[0]._meta.verbose_name 'fornitore' which is ok. But I get >>> get_models(arteak.management.models)[0]._meta.verbose_name_plural <django.utils.functional.__proxy__ object at 0x84ebfac> which I don't know how to handle. This different behaviour looks weird. I'm using 1.0beta2. All the best, Fabio. -- Fabio Natali --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---