List Info

Thread: verbose_name option not working...




verbose_name option not working...
user name
2006-08-27 02:04:11
In my models, I have added the options
"verbose_name" and
"verbose_name_plural" to make my models easier
to understand in the
admin interface. However, even though I have added these
options in my
models, the admin interface still displays the model's name
in the
default camel case style. Is there something else I am
supposed to add
in order for these names to be used?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

verbose_name option not working...
user name
2006-08-27 19:42:11
2006/8/27, mediumgrade <davidsojournmusic.net>:
>
> In my models, I have added the options
"verbose_name" and
> "verbose_name_plural" to make my models
easier to understand in the
> admin interface. However, even though I have added
these options in my
> models, the admin interface still displays the model's
name in the
> default camel case style. Is there something else I am
supposed to add
> in order for these names to be used?
>
>
class Yourclass(models.Model)
    # Your class definition here
    class Admin:
       pass

    class Meta:
        verbose_name_plural = 'the verbose name goes here'

This should be enoguth. It works for me 
-- 
Antoni Aloy López
Binissalem - Mallorca
http://www.trespams.com
Soci de Bulma - http://www.bulma.cat

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

verbose_name option not working...
user name
2006-08-30 00:49:56
Great! Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )