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.
13 lines
324 B
Python
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")
|