Skip to content

Commit

Permalink
Additional fields in data center assets list view and bulk edit
Browse files Browse the repository at this point in the history
  • Loading branch information
awieckowski committed Feb 8, 2024
1 parent 84e9a1d commit 0a2daa2
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 @@ -411,14 +411,18 @@ class DataCenterAssetAdmin(
'service_env',
'configuration_path',
'scan_status',
'scm_status_check'
'scm_status_check',
'property_of',
'order_no',
'remarks'
]
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'
]
bulk_edit_no_fillable = ['barcode', 'sn']
search_fields = [
Expand Down

0 comments on commit 0a2daa2

Please sign in to comment.