beginner whitespace question
Dan Bishop
danb_83 at yahoo.com
Thu Aug 9 19:52:05 EDT 2007
On Aug 9, 6:47 pm, eggie5 <egg... at gmail.com> wrote:
> I keep getting an error for line 7, what's wrong with this?
>
> from django.db import models
>
> class Poll(models.Model):
> question = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
>
> def __unicode__(self):
> return self.question
>
The "def" statements have to be at the same indentation level as
what's before it.
More information about the Python-list
mailing list