#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# context = super ( ) . get_context_data ( ** kwargs ) #NEWLINE# context [ 'my_equipment_links' ] = self . get_links ( ) #NEWLINE# asset_fields = [ ( 'barcode' , _ ( 'Barcode / Inventory Number' ) ) , 'model__category__name' , 'model__manufacturer__name' , 'model__name' , ( 'sn' , _ ( 'Serial Number' ) ) , 'invoice_date' , 'status' ] #NEWLINE# if settings . MY_EQUIPMENT_SHOW_BUYOUT_DATE : #NEWLINE# #INDENT# asset_fields += [ 'buyout_date' ] #NEWLINE# #UNINDENT# if settings . MY_EQUIPMENT_REPORT_FAILURE_URL : #NEWLINE# #INDENT# asset_fields += [ 'report_failure' ] #NEWLINE# #UNINDENT# context [ 'asset_list' ] = MyEquipmentAssetList ( self . get_asset_queryset ( ) , asset_fields , [ 'user_licence' ] , request = self . request ) #NEWLINE# context [ 'licence_list' ] = AssignedLicenceList ( self . get_licence_queryset ( ) , [ ( 'niw' , _ ( 'Inventory Number' ) ) , 'software__name' , 'sn' , 'invoice_date' ] , request = self . request ) #NEWLINE# return context