IntegerChoices django

from django.db import models 
from django.utils.translation import ugettext_lazy as _


class Answer(models.IntegerChoices): 
    NO = 0, _('No')
    YES = 1, _('Yes')
    
    __empty__ = _('(Unknown)')
Serhii Zahranychnyi