#NEWLINE# @ staticmethod #NEWLINE# @ quickcache ( [ 'location_id' , 'domain' ] , timeout = 600 ) #NEWLINE# def _get_location_type( location_id , domain ) : #NEWLINE# #INDENT# sql_location = SQLLocation . objects . filter ( domain = domain , location_id = location_id ) #NEWLINE# if sql_location : #NEWLINE# #INDENT# return sql_location [ 0 ] . location_type . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None