STATUS = ( (1, "Sent"), (2, "Not send",),) class Log(models.Model): status = models.CharField(max_length=255,choices=STATUS)
admin
class LogAdmin(admin.ModelAdmin): list_display=['status']
This display:
Status - (leer)
How to display status - sent or not sent here?
source share