#NEWLINE# def get_context_object_name( self , obj ) : #NEWLINE# #INDENT# '\n        Get the name to use for the object.\n        ' #NEWLINE# if self . context_object_name : #NEWLINE# #INDENT# return self . context_object_name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( obj , '_meta' ) : #NEWLINE# #INDENT# return smart_str ( obj . _meta . object_name . lower ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None