feat: add search, filter, sort and pagination to QuickEvaluation list API
This commit is contained in:
@@ -15,12 +15,18 @@ class QuickEvaluationAdmin(ModelAdmin):
|
||||
"manufacture_year",
|
||||
"condition",
|
||||
"estimated_price",
|
||||
"status",
|
||||
"car_type",
|
||||
"state_car",
|
||||
"created_at",
|
||||
)
|
||||
list_filter = (
|
||||
"fuel_type",
|
||||
"body_type",
|
||||
"condition",
|
||||
"status",
|
||||
"car_type",
|
||||
"state_car",
|
||||
)
|
||||
search_fields = (
|
||||
"brand",
|
||||
@@ -50,10 +56,11 @@ class QuickEvaluationAdmin(ModelAdmin):
|
||||
"fields": (
|
||||
("fuel_type", "body_type"),
|
||||
"condition",
|
||||
("car_type", "state_car"),
|
||||
),
|
||||
}),
|
||||
("Natija", {
|
||||
"fields": ("estimated_price",),
|
||||
"fields": ("estimated_price", "status"),
|
||||
}),
|
||||
("Tizim", {
|
||||
"classes": ("collapse",),
|
||||
|
||||
Reference in New Issue
Block a user