#NEWLINE# def configure_likable_models( self , value ) : #NEWLINE# #INDENT# DEFAULT_LIKE_CONFIG = { #NEWLINE# #INDENT# 'css_class_on' : 'icon-heart' , #NEWLINE# 'css_class_off' : 'icon-heart-empty' , #NEWLINE# 'like_text_on' : 'Unlike' , #NEWLINE# 'like_text_off' : 'Like' , #NEWLINE# 'count_text_singular' : 'like' , #NEWLINE# 'count_text_plural' : 'likes' , #NEWLINE# #UNINDENT# } #NEWLINE# for model in value : #NEWLINE# #INDENT# custom_data = value [ model ] . copy ( ) #NEWLINE# default_data = DEFAULT_LIKE_CONFIG . copy ( ) #NEWLINE# value [ model ] = default_data #NEWLINE# value [ model ] . update ( custom_data ) #NEWLINE# #UNINDENT# return value