#NEWLINE# def get_identifier( self , instance ) : #NEWLINE# #INDENT# from django.db import models #NEWLINE# klass = self #NEWLINE# if isinstance ( instance , models . Model ) : #NEWLINE# #INDENT# klass = instance . __class__ #NEWLINE# #UNINDENT# return dict ( ( ( v , k ) for ( k , v ) in self . identifiers . items ( ) ) ) . get ( klass )