#NEWLINE# def __unicode__( self ) : #NEWLINE# #INDENT# snapshot_pk = 'None' #NEWLINE# if self . canonical_snapshot : #NEWLINE# #INDENT# snapshot_pk = self . canonical_snapshot . pk #NEWLINE# #UNINDENT# return 'pk: {0} - snapshot: {1} - active: {2}' . format ( self . pk , snapshot_pk , self . active )