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
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
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
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: []
>
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)
5 matches
Mail list logo