<s> class Blueprint ( object ) : <EOL> def __init__ ( self , model , fields = None , pre_save = None , post_save = None , seed = None ) : <EOL> from . faker_factory import factory <EOL> self . factory = factory <EOL> self . model = model <EOL> self . fields = fields <EOL> self . seed = seed <EOL> self . pre_save = pre_save <EOL> self . post_save = post_save <EOL> self . pk = - <NUM_LIT:1> <EOL> super ( Blueprint , self ) . __init__ ( ) <EOL> def make_one ( self , fields = None , pre_save = None , post_save = None , seed = None , iteration = None ) : <EOL> _fields = self . fields . copy ( ) <EOL> if fields : <EOL> _fields . update ( fields ) <EOL> if seed is None : <EOL> seed = self . seed <EOL> if pre_save is None : <EOL> pre_save = self . pre_save <EOL> if post_save is None : <EOL> post_save = self . post_save <EOL> return self . factory . make_one ( self . model , _fields , pre_save , post_save , seed , iteration ) <EOL> def make ( self , fields = None , pre_save = None , post_save = None , seed = None , quantity = None ) : <EOL> _fields = self . fields . copy ( ) <EOL> if fields : <EOL> _fields . update ( fields ) <EOL> if seed is None : <EOL> seed = self . seed <EOL> if pre_save is None : <EOL> pre_save = self . pre_save <EOL> if post_save is None : <EOL> post_save = self . post_save <EOL> return self . factory . make ( self . model , _fields , pre_save , post_save , seed , quantity ) <EOL> def build ( self , fields = None , pre_save = None , seed = None , quantity = None , make_fks = False ) : <EOL> _fields = self . fields . copy ( ) <EOL> if fields : <EOL> _fields . update ( fields ) <EOL> if seed is None : <EOL> seed = self . seed <EOL> if pre_save is None : <EOL> pre_save = self . pre_save <EOL> return self . factory . build ( self . model , _fields , pre_save , seed , quantity , make_fks ) </s>
