schon/engine/vibes_auth/choices.py
Egor fureunoir Gorbunov 6109643acb Features: 1) Introduced ChatThread and ChatMessage models for messaging functionality; 2) Added ThreadStatus and SenderType choices for structured messaging states; 3) Integrated Django migrations with indexing for new models;
Fixes: 1) Corrected `admin.py` imports for consistency and model alignment;

Extra: Refactored `choices.py` for reusable enums; restructured `models.py` for clarity and maintainability.
2025-11-11 18:31:17 +03:00

13 lines
324 B
Python

from django.db.models import TextChoices
from django.utils.translation import gettext_lazy as _
class ThreadStatus(TextChoices):
OPEN = "open", _("Open")
CLOSED = "closed", _("Closed")
class SenderType(TextChoices):
USER = "user", _("User")
STAFF = "staff", _("Staff")
SYSTEM = "system", _("System")