Re: Displaying the id in admin

2008-02-11 Thread J. Cliff Dyer
Except, I think with the svn version it's: def __unicode__(self) return self.id I'm working with 0.96, but I've come across something about that in the docs. Does it need to be "return u'%s' % self.id" to convert if self.id is an int? Cheers, Cliff On Mon, 2008-02-11 at 18:15 +0100,

Re: Displaying the id in admin

2008-02-11 Thread Aaron Fay
Hi Tom, In some places I *believe* object_id gave me results in my own templates. The next option is to try to access the context, but I believe you may have to write a template tag to use it (not totally sure). Here's an example I used: ### //test/templatetags/my_tags.py from django.templa

Re: Displaying the id in admin

2008-02-11 Thread Almir Karic
probably something like (in your model) def __str__(self): return self.id On Feb 11, 2008 6:09 PM, Tom Badran <[EMAIL PROTECTED]> wrote: > Is there a way i can display the id of an object in the admin pages? I've > had a look over the docs and nothing jumps out. This is using django svn >