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 instances of the CustomerClass class,
with primary keys ranging 0..2 - then using the __unicode__() function
suggested below I am presented with a list of three items:

  0: John
  1: Bill
  2: George

Clicking on "2: George" I get up a new screen where I can edit the
information about George:

  Name:  [  George ]
  Date  :  [ 27/08/2009 ]
  Email:  [ [email protected] ]

Now - it is in this view I would have liked to display the primary key
as well (the primary key serves as kind of customer id). I have tried
to instantiate a CustomerAdmin class and listed the "id" field, there
but that only gives run time error. It seems the admin view/template
does not recognize the id which is an AutoField.

OK - thanks a lot for your time - further suggestions greatly
appreciated!

Joakim





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to