feat: add search, filter, sort and pagination to QuickEvaluation list API
This commit is contained in:
23
core/apps/evaluation/choices/quick.py
Normal file
23
core/apps/evaluation/choices/quick.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class QuickEvaluationStatus(models.TextChoices):
|
||||
CREATED = "created", _("Created")
|
||||
EVALUATOR_ASSIGNED = "evaluator_assigned", _("Evaluator assigned")
|
||||
EVALUATED = "evaluated", _("Evaluated")
|
||||
REJECTED = "rejected", _("Rejected")
|
||||
APPROVED = "approved", _("Approved")
|
||||
|
||||
|
||||
class CarType(models.TextChoices):
|
||||
LIGHTWEIGHT = "lightweight", _("Lightweight")
|
||||
TRUCK = "truck", _("Truck")
|
||||
BUS = "bus", _("Bus")
|
||||
MOTO = "moto", _("Moto")
|
||||
|
||||
|
||||
class CarState(models.TextChoices):
|
||||
GOOD = "good", _("Good")
|
||||
SATISFACTORY = "satisfactory", _("Satisfactory")
|
||||
BAD = "bad", _("Bad")
|
||||
Reference in New Issue
Block a user