admin fayllari to'g'irlandi
This commit is contained in:
@@ -5,8 +5,46 @@ from core.apps.evaluation.models import MovablePropertyEvaluationModel
|
||||
|
||||
|
||||
@admin.register(MovablePropertyEvaluationModel)
|
||||
class MovablepropertyevaluationAdmin(ModelAdmin):
|
||||
class MovablePropertyEvaluationAdmin(ModelAdmin):
|
||||
list_display = (
|
||||
"id",
|
||||
"__str__",
|
||||
"valuation",
|
||||
"property_name",
|
||||
"property_category",
|
||||
"serial_number",
|
||||
"manufacture_year",
|
||||
"condition",
|
||||
"quantity",
|
||||
)
|
||||
list_filter = (
|
||||
"property_category",
|
||||
"condition",
|
||||
)
|
||||
search_fields = (
|
||||
"property_name",
|
||||
"serial_number",
|
||||
"valuation__conclusion_number",
|
||||
)
|
||||
readonly_fields = ("created_at", "updated_at")
|
||||
raw_id_fields = ("valuation",)
|
||||
fieldsets = (
|
||||
("Ariza", {
|
||||
"fields": ("valuation",),
|
||||
}),
|
||||
("Mulk ma'lumotlari", {
|
||||
"fields": (
|
||||
"property_name",
|
||||
"property_category",
|
||||
"serial_number",
|
||||
"manufacture_year",
|
||||
"quantity",
|
||||
),
|
||||
}),
|
||||
("Holat", {
|
||||
"fields": ("condition",),
|
||||
}),
|
||||
("Tizim", {
|
||||
"classes": ("collapse",),
|
||||
"fields": ("created_at", "updated_at"),
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user