Thanks Julien!
I'm new to Python, so the indentation is throwing me a bit, but that
sorted out the problem.
Thanks again!
On Jun 27, 5:16 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the example you give I see some identeation problems. It should
> rather be:
>
> class Poll(models.Model)
Thanks Julien!
I'm new to python, so the indentation is throwing me a little, but
that fixed the issue.
Thanks again!
On Jun 27, 5:16 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In the example you give I see some identeation problems. It should
> rather be:
>
> class Poll(models.Model):
>
Hi,
In the example you give I see some identeation problems. It should
rather be:
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
def was_published_today(se
3 matches
Mail list logo