Re: def __unicode__(self) in models.py is not working

2013-02-13 Thread David
It appears as though when using Python3.3 and Django 1.6dev you should use __str__ and not __unicode__. __unicode__ seems to be gone from Python3.3 On Tuesday, February 12, 2013 4:45:33 PM UTC-5, David wrote: > > I am working through the tutorial and find that the *def > __unicode__(self):* com

Re: def __unicode__(self) in models.py is not working

2013-02-12 Thread Lachlan Musicman
On Wed, Feb 13, 2013 at 9:45 AM, David wrote: > I am working through the tutorial and find that the *def > __unicode__(self):* command to give an object a readable name in admin is > not working. I am cutting code from the tutorial. When I access the > detail screen in /admin/ all I see is [tab

def __unicode__(self) in models.py is not working

2013-02-12 Thread David
I am working through the tutorial and find that the *def __unicode__(self):*command to give an object a readable name in admin is not working. I am cutting code from the tutorial. When I access the detail screen in /admin/ all I see is [table name] object and not the name I defined in def __