STATUS = (
(1, "Sent"),
(2, "Not send",),)
class Log(models.Model):
status = models.CharField(max_length=255,choices=STATUS)
行政
class LogAdmin(admin.ModelAdmin):
list_display=['status']
本次展示:
状态 - (leer)
如何在此处显示状态 - 已发送或未发送?