#NEWLINE# def _unhide_stock_states( location_type ) : #NEWLINE# #INDENT# for location in SQLLocation . objects . filter ( location_type = location_type ) : #NEWLINE# #INDENT# StockState . objects . filter ( case_id = location . supply_point_id ) . update ( sql_location = location )