Matías,
On 2/6/07, Matias <[EMAIL PROTECTED]> wrote:
>
> 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
>
See,
http://www.djangoproject.com/documentation/model_api/#verbose-name
Example:
class Pais(models.Model):
nombre = models.CharField(maxlength=50)
[...]
class Meta:
verbose_name = 'país'
verbose_name_plural = 'paises'
Regards,
PS: You could alsa name the model Categoria instead of Category,
but in this special case (as it's also true with Pais)
it woud be missing the accented i.
--
Ramiro Morales
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---