* Matias wrote, On 06.02.2007 05:36: > Hi, > > I've a class named "Category", but this application must be in > Spanish, so I need it to be displayed on the Admin interface as > "Categoria". ¿how can I accomplish that? > > Here is the model definition: > > class Category(models.Model): > name = models.CharField('Nombre',maxlength=40) > description = models.CharField('Descripción',maxlength=250) > def __str__(self): > return self.name > class Admin: > pass
class Meta: verbose_name = 'Categoria' verbose_name_plural = <plural version> -- Nebojša Đorđević - nesh, ICQ#43799892 Studio Quattro - Niš - Serbia http://studioquattro.biz/ | http://trac.studioquattro.biz/djangoutils/ Registered Linux User 282159 [http://counter.li.org] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---