#NEWLINE# @ serial_task ( '{location_type.domain}-{location_type.pk}' , default_retry_delay = 30 , max_retries = 3 ) #NEWLINE# def sync_administrative_status( location_type ) : #NEWLINE# #INDENT# 'Updates supply points of locations of this type' #NEWLINE# for location in SQLLocation . objects . filter ( location_type = location_type ) : #NEWLINE# #INDENT# location . save ( ) #NEWLINE# #UNINDENT# if location_type . administrative : #NEWLINE# #INDENT# _hide_stock_states ( location_type ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _unhide_stock_states ( location )