Is there anyway to show what an object's primary key id is in the Admin?

I tried adding "id" to the fields list, but that generates an error. I
then tried having an explicit id, ie.

id = models.AutoField(primary_key=True)

but it was still no good.

Essentially what I'm trying to do is grab the ID so I can pass it as
an argument to another Admin page, using some custom JS.

I *could* parse the ID out of the URL, but that feels like a kludge.

Any help would be appreciated.

Thanks,
Jay P.

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

Reply via email to