16 lines
430 B
Python
16 lines
430 B
Python
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class RoomType(models.TextChoices):
|
|
AUTO_EVALUATION = "auto_evaluation", _("AutoEvaluation xonasi")
|
|
DIRECT = "direct", _("To'g'ridan-to'g'ri")
|
|
|
|
|
|
class MessageType(models.TextChoices):
|
|
TEXT = "text", _("Matn")
|
|
IMAGE = "image", _("Rasm")
|
|
VIDEO = "video", _("Video")
|
|
VOICE = "voice", _("Ovoz")
|
|
FILE = "file", _("Fayl")
|