from django.db import models class MessageChoice(models.TextChoices): FILE = "file", "File" TEXT = "text", "Text"