【发布时间】:2010-01-21 06:31:38
【问题描述】:
我正在使用以下代码并遇到一些缩进问题
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
我收到以下错误
File "E:\Softwares\Django-1.1.1.tar\.py", line 7
def __unicode__(self):
^
IndentationError: unexpected indent
【问题讨论】: