Skip to content

Commit

Permalink
Hostname as a first column of DataCenterAsset listing (#2449)
Browse files Browse the repository at this point in the history
Moved hostname to the first place in DataCenterAsset listing. Hostname is now clickable column (it provides link to the details view).
  • Loading branch information
mkurek authored and ar4s committed Jun 6, 2016
1 parent 77ab172 commit aab2597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ralph/data_center/admin.py
Expand Up @@ -188,13 +188,13 @@ class DataCenterAssetAdmin(
show_transition_history = True
resource_class = resources.DataCenterAssetResource
list_display = [
'status', 'barcode', 'model', 'sn', 'hostname', 'invoice_date',
'hostname', 'status', 'barcode', 'model', 'sn', 'invoice_date',
'invoice_no', 'location', 'service_env',
]
multiadd_summary_fields = list_display + ['rack']
one_of_mulitvalue_required = ['sn', 'barcode']
bulk_edit_list = [
'status', 'barcode', 'model', 'sn', 'hostname', 'invoice_date',
'hostname', 'status', 'barcode', 'model', 'sn', 'invoice_date',
'invoice_no', 'rack', 'orientation', 'position', 'slot_no', 'price',
'provider', 'service_env', 'tags'
]
Expand Down

0 comments on commit aab2597

Please sign in to comment.