Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
Joakim Hove wrote: > > > Hello, > > thanks for the tip: > >> It is usually not a good idea to give business meaning to a primary key >> in a relational database. The literature is full of reasons against it. > > I had a nagging feeling this might be the case. Do you have any links > to "Best

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
Hello, thanks for the tip: > It is usually not a good idea to give business meaning to a primary key > in a relational database. The literature is full of reasons against it. I had a nagging feeling this might be the case. Do you have any links to "Best practice" om these questions - I am a

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
> and if you look up-screen at the "breadcrumbs" you should see ... > > Home >> Customers >> 2: George > > Does that do it? Well - I know (and thanks for the info) - but I would really like to get it even clearer. Joakim --~--~-~--~~~---~--~~ You received this

Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
Joakim Hove wrote: > Thank you both for answering; however I am afraid we are > misunderstanding eachother here. > > I have created a admin.py file and registered my CustomerClass with > the admin interface. That works, and I can select the CustomerClass > when logged in to the admin interface.

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
Thank you both for answering; however I am afraid we are misunderstanding eachother here. I have created a admin.py file and registered my CustomerClass with the admin interface. That works, and I can select the CustomerClass when logged in to the admin interface. Let us say I have created three

Re: Showng the primary key in admin view

2009-09-02 Thread Antoni Aloy
2009/9/2 Mike Dewhirst : > > Joakim Hove wrote: >> Hello, >> >> I have a (simplified) model like this >> >> class Customer(models.Model): >>      name  =   models.CharField(max_length = 100) >>      date    =   models.DateTimeField() >>      email  =   models.EmailField()

Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
Joakim Hove wrote: > Hello, > > I have a (simplified) model like this > > class Customer(models.Model): > name = models.CharField(max_length = 100) > date= models.DateTimeField() > email = models.EmailField() > > > When showing this in the (100 % default) admin view

Showng the primary key in admin view

2009-09-01 Thread Joakim Hove
Hello, I have a (simplified) model like this class Customer(models.Model): name = models.CharfField(max_length = 100) date= models.DateTimeField() email = models.EmailField() When showing this in the (100 % default) admin view I get up nice entry boxes for the