Skip to content

Commit

Permalink
Additional fields in data center assets list view and bulk edit (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
awieckowski authored Feb 12, 2024
1 parent 412eda1 commit 34138d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ralph/data_center/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,17 @@ class DataCenterAssetAdmin(
'service_env',
'configuration_path',
'scan_status',
'scm_status_check'
'scm_status_check',
'property_of',
'order_no'
]
multiadd_summary_fields = list_display + ['rack']
one_of_mulitvalue_required = ['sn', 'barcode']
bulk_edit_list = [
'hostname', 'status', 'barcode', 'model', 'sn', 'invoice_date',
'invoice_no', 'rack', 'orientation', 'position', 'slot_no', 'price',
'provider', 'service_env', 'configuration_path', 'tags', 'start_usage'
'provider', 'service_env', 'configuration_path', 'tags', 'start_usage',
'depreciation_end_date', 'depreciation_rate', 'order_no', 'remarks'
]
bulk_edit_no_fillable = ['barcode', 'sn']
search_fields = [
Expand Down Expand Up @@ -455,6 +458,7 @@ class DataCenterAssetAdmin(
'service_env__service',
'service_env__environment',
'configuration_path',
'property_of'
]
raw_id_fields = [
'model', 'rack', 'service_env', 'parent', 'budget_info',
Expand Down

0 comments on commit 34138d1

Please sign in to comment.