Re: Naming a ForeignKey field in the Admin

2008-12-01 Thread Fabio Natali
The Agregator wrote: [...] > CustomerID = models.ForeignKey(Customer) > The problem is that I want it to say something else, like "Customer > Name" Try with CustomerID = models.ForeignKey(Customer, verbose_name="Customer Name") HTH, -- Fabio Natali --~--~-~--~~-

Re: Naming a ForeignKey field in the Admin

2008-12-01 Thread Nitzan Brumer
Worked like a charm Thanks On Mon, Dec 1, 2008 at 1:50 PM, Fabio Natali <[EMAIL PROTECTED]>wrote: > > The Agregator wrote: > [...] > > CustomerID = models.ForeignKey(Customer) > > > The problem is that I want it to say something else, like "Customer > > Name" > > Try with > > Customer

Naming a ForeignKey field in the Admin

2008-12-01 Thread The Agregator
Hi I'm new here - in Django and python, more of a Php and wordpress myself. anyway - here is my question, hope someone knows the answer. I have 2 classes - components and customers. every component has a field that says whos the related customer. like this: class Component(models.Model): #