|
|
@@ -64,7 +64,7 @@ class BrandInfoAdmin(admin.ModelAdmin):
|
64
|
64
|
|
65
|
65
|
|
66
|
66
|
class ModelInfoAdmin(DeleteModelAdmin, admin.ModelAdmin):
|
67
|
|
- list_display = ('brand_id', 'brand_name', 'jancode', 'model_id', 'model_name', 'model_uni_name', 'model_full_name', 'model_descr', 'category', 'warehouse', 'image', 'url', 'image2', 'factory_yuan', 'integral', 'position', 'display', 'is_important', 'shot_type_id', 'shot_member_integral', 'shot_member_image', 'shot_member_name', 'status', 'created_at', 'updated_at')
|
|
67
|
+ list_display = ('pk', 'brand_id', 'brand_name', 'jancode', 'model_id', 'model_name', 'model_uni_name', 'model_full_name', 'model_descr', 'category', 'warehouse', 'image', 'url', 'image2', 'factory_yuan', 'integral', 'position', 'display', 'is_important', 'shot_type_id', 'shot_member_integral', 'shot_member_image', 'shot_member_name', 'status', 'created_at', 'updated_at')
|
68
|
68
|
list_filter = ('brand_name', 'category', 'warehouse', 'shot_type_id', 'display', 'status')
|
69
|
69
|
readonly_fields = ('brand_name', 'factory_fee')
|
70
|
70
|
search_fields = ('brand_id', 'brand_name', 'jancode', 'model_id', 'model_name', 'model_uni_name', 'model_full_name', 'model_descr', 'category', 'warehouse')
|