def assets_depreciate():
 assets = Asset.objects.all()
 for asset in assets:
  if (not asset.trash):
   asset.set_current_value()

def assets_depreciate ( ) : assets = Asset . objects . all ( ) for asset in assets : if ( not asset . trash ) : asset . set_current_value ( )
automatically depreciate assets as per their depreciation rate .