Re: Tutorial question regarding def _unicode_

2012-04-11 Thread Brandy
Yep..that's it. Thanks! On Apr 11, 12:55 pm, Jonathan Baker wrote: > The method should begin and end with two underscores: __unicode__(self): > > > > > > On Wed, Apr 11, 2012 at 11:30 AM, Brandy wrote: > > I am working through the tutorial and have already added the def > > _unicode_ statements

Re: Tutorial question regarding def _unicode_

2012-04-11 Thread Gerald Klein
Have you resynced? On Wed, Apr 11, 2012 at 12:30 PM, Brandy wrote: > I am working through the tutorial and have already added the def > _unicode_ statements to my code. However, when running > Poll.objects.all(), I still get this output: [] > > Here is the code: > > from django.db import models

Re: Tutorial question regarding def _unicode_

2012-04-11 Thread Babatunde Akinyanmi
I don't know if its because I'm reading this mail from my phone but you should have __unicode__() not _unicode_() ie is 2 underscores before and after not 1 On 4/11/12, Brandy wrote: > I am working through the tutorial and have already added the def > _unicode_ statements to my code. However, wh

Re: Tutorial question regarding def _unicode_

2012-04-11 Thread Jonathan Baker
The method should begin and end with two underscores: __unicode__(self): On Wed, Apr 11, 2012 at 11:30 AM, Brandy wrote: > I am working through the tutorial and have already added the def > _unicode_ statements to my code. However, when running > Poll.objects.all(), I still get this output: [] >

Tutorial question regarding def _unicode_

2012-04-11 Thread Brandy
I am working through the tutorial and have already added the def _unicode_ statements to my code. However, when running Poll.objects.all(), I still get this output: [] Here is the code: from django.db import models class Poll(models.Model): question = models.CharField(max_length=200)