Yes, you nad Nuno have right. Now it is work wll
Thanks for help
On 24 Mar, 18:56, Shawn Milochik wrote:
> The verbose name options you show should work, but they should be in a meta
> class within the main model.
>
> Example:
>
> class Category(models.Model):
>
> #your stuff here
>
>
The verbose name options you show should work, but they should be in a meta
class within the main model.
Example:
class Category(models.Model):
#your stuff here
class Meta:
verbose_name = "Kategoria"
verbose_name_plural = "Kategorie"
Shawn
-
I think you need toput verbose_name(_plural) in the class Meta
http://docs.djangoproject.com/en/dev/topics/db/models/#id3
class Category(models.Model):
class Meta:
verbose_name = "Kategoria"
verbose_name_plural = "Kategorie"
Nuno
On Wed, Mar 24, 2010 at 5:49 PM, serek wrote:
> Hi
Hi
I use Django 1.1 and I would like to display in admin panel different
model name.
For example from code:
class Category(models.Model):
in admin panel I receive
'Categorys' instead of Categories
I googled for this and try:
class Category(models.Model):
verbose_name = "Kategoria"
verbos
4 matches
Mail list logo