Re: How to change name for model in Admin?

2009-10-04 Thread Rodrigo Cea
Please post the actual code that's not working. This should work regardless of the value of verbose_name. Rodrigo On Oct 3, 7:51 pm, adelaide_mike wrote: > Thanks for the pointer. > > I find that the verbose_name works as advertised in the case of a > model named

Re: How to change name for model in Admin?

2009-10-03 Thread adelaide_mike
Thanks for the pointer. I find that the verbose_name works as advertised in the case of a model named "Agency", where I use the verbose name "office". However, in the case of the model Franchise the verbose name "company" refuses to work. Anyone know why? Mike On Oct 4, 2:11 am, Nan

Re: How to change name for model in Admin?

2009-10-03 Thread Nan
Yes. class Foo(models.Model): # field definitions here class Meta: verbose_name = 'Bar' See also: http://docs.djangoproject.com/en/dev/ref/models/options/#ref-models-options On Oct 3, 10:37 am, adelaide_mike wrote: > Hi again. > I have made a

How to change name for model in Admin?

2009-10-03 Thread adelaide_mike
Hi again. I have made a couple of confusing choices for table names in my database. I do not really want to change them in the PostgreSQL database. Can I change the labels given to them in the Admin. For example in the list of administratable tables and the pages that follow when doing add or