verbose field names in admin

761 views
Skip to first unread message

pixelcowboy

unread,
Mar 1, 2010, 10:20:20 AM3/1/10
to Django users
Hi, I have added verbose names for each of my field names, with the
purpose of getting a pretty admin display. However, I have reset my
database and the admin still shows the field name only, not the
verbose name. Do I need to do anything else?

Adam Yee

unread,
Mar 1, 2010, 3:45:26 PM3/1/10
to Django users
When in doubt, always refer to the docs - http://docs.djangoproject.com/en/dev/ref/models/options/
There may be something small overlooked.

You shouldn't have to re-sync the database to use verbose_name. It's
just a hook to be used for example, in the model's meta options. Give
us more detail about your model for further help.

pixelcowboy

unread,
Mar 1, 2010, 7:11:24 PM3/1/10
to Django users
No matter what I do, the verbose name for the fields do not change
what appears on the admin view.


On Mar 1, 2:45 pm, Adam Yee <adamj...@gmail.com> wrote:
> When in doubt, always refer to the docs -http://docs.djangoproject.com/en/dev/ref/models/options/

pixelcowboy

unread,
Mar 1, 2010, 7:12:20 PM3/1/10
to Django users
Im not trying to change the verbose name for the model class, but for
individual fields in the model, by the way.

On Mar 1, 2:45 pm, Adam Yee <adamj...@gmail.com> wrote:

> When in doubt, always refer to the docs -http://docs.djangoproject.com/en/dev/ref/models/options/

Adam Yee

unread,
Mar 3, 2010, 11:38:29 AM3/3/10
to Django users, pixelc...@gmail.com
Ok, take a look at this link...
http://docs.djangoproject.com/en/dev/topics/db/models/#verbose-field-names

If that isn't what you're looking for, then you can change it at the
form level...
http://docs.djangoproject.com/en/1.1/ref/forms/fields/#label

Again, the more detail you give will help (ie. some example code of
how you are actually doing this), and the more likely you are to get
help.

Adam

Reply all
Reply to author
Forward
0 new messages