#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( RedisStructure , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# instance = self . instance #NEWLINE# field = instance . field #NEWLINE# if field : #NEWLINE# #INDENT# model = field . model #NEWLINE# if instance . _pkvalue : #NEWLINE# #INDENT# id = self . backend . basekey ( model . _meta , 'obj' , instance . _pkvalue , field . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# id = self . backend . basekey ( model . _meta , 'struct' , field . name ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# id = ( '%s.%s' % ( instance . _meta . name , instance . id ) ) #NEWLINE# #UNINDENT# self . id = id