Hi all of you,

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')

This Meta class actually works fine and my admin interface shows my
new custom word for the plural form (Fornitori instead of Fornitores,
Italian instead of English).

Now I need to use this very same verbose_name_plural in my views.py,
so to pass the right words to my templates. However I can't do that.

What am I suppose to write in my views.py? Could anyone shed some
light on it?

To make it short: how can I access verbose_name from templates?

Thank you so much,
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to