#NEWLINE# def create_price_list_items_for_service( sender , instance , created = False , **kwargs ) : #NEWLINE# #INDENT# if created : #NEWLINE# #INDENT# service = instance #NEWLINE# resource_content_type = ContentType . objects . get_for_model ( service ) #NEWLINE# for default_item in models . DefaultPriceListItem . objects . filter ( resource_content_type = resource_content_type ) : #NEWLINE# #INDENT# models . PriceListItem . objects . create ( resource_content_type = resource_content_type , service = service , key = default_item . key , item_type = default_item . item_type , value = default_item . value , units = default_item . units )