No worries. I'm actually parsing the URL with some JavaScript to get
it done. It actually works pretty nicely, and it means I don't have to
dig into the DOM to pull out the value (although with MochiKit,
digging into the DOM is almost a joy to do)
Thanks,
Jay P.
--~--~-~--~~-
Oh, damn. I just re-read your message and realized you already tried
that. Sorry, reading too fast. :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
I don't think you can display an automatically-added ID field in the
Admin, since it's not present in the Model class. But, I think you can
probably just add "id = models.AutoField(primary_key=True)" to your
model and then display it in the admin.
I think. :)
--~--~-~--~~---
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
4 matches
Mail list logo