1👍
✅
In your MerchantDeal
model:
STATE_CHOICES = ((1,'Created'),(2,'Activated'),(3,'Completed'))
class MerchantDeal(models.Model):
# .. your various other fields
current_state = models.IntegerField(choices=STATE_CHOICES)
Then in your template:
<td>{{ Item.get_current_state.display }}</td>
The documentation details how this works.
Source:stackexchange.com