如何在 django admin 中显示 IntegerField?
我的错误:强制使用 Unicode:需要字符串或缓冲区,找到 int
class Day(models.Model):
day = models.IntegerField()
def __unicode__(self):
return self.day
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2263 次 |
| 最近记录: |