#NEWLINE# @ property #NEWLINE# def image( self ) : #NEWLINE# #INDENT# if ( not hasattr ( self , '_image_model' ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# Model = apps . get_model ( * self . glossary [ 'image' ] [ 'model' ] . split ( '.' ) ) #NEWLINE# self . _image_model = Model . objects . get ( pk = self . glossary [ 'image' ] [ 'pk' ] ) #NEWLINE# #UNINDENT# except ( KeyError , ObjectDoesNotExist ) : #NEWLINE# #INDENT# self . _image_model = None #NEWLINE# #UNINDENT# #UNINDENT# return self . _image_model