def rereviewqueuetheme_checksum(rqt, **kw):
 dupe_personas = Persona.objects.filter(checksum=make_checksum((rqt.header_path or rqt.theme.header_path), (rqt.footer_path or rqt.theme.footer_path)))
 if dupe_personas.exists():
  rqt.dupe_persona = dupe_personas[0]
  rqt.save()

def rereviewqueuetheme_checksum ( rqt , ** kw ) : dupe_personas = Persona . objects . filter ( checksum = make_checksum ( ( rqt . header_path or rqt . theme . header_path ) , ( rqt . footer_path or rqt . theme . footer_path ) ) ) if dupe_personas . exists ( ) : rqt . dupe_persona = dupe_personas [ 0 ] rqt . save ( )
check for possible duplicate theme images .