django admin中文输入编码错误
修改models里面的str方法,改为unicode
class Category(models.Model): name = models.CharField(max_length=20, verbose_name=u'类名') description = models.CharField(max_length=100, default='', verbose_name=u'描述') def __unicode__(self): return self.name class Meta: verbose_name = u'文章分类' verbose_name_plural = verbose_name