I have a model like this:
class User(AbstractUser):
PERMISSION_CHOICES = [
(0, 'boss'),
(1, 'leader'),
(2, 'bro'),
(3, 'sis'),
]
permission = models.SmallIntegerField(
_('permission'),
default=0,
choices=PERMISSION_CHOICES,
help_text=_('xxx')
)
My Serializer is like this:
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('permission', ...)
Now I have the doc like below:
I wanna show the 'boss'/'leader'/'bro'/'sis' in the red rectangle.
I googled, but not found solutions, so here is the questions.