#NEWLINE# def __init__( self , auto_add = False , coerce_to = uuid . UUID , **kwargs ) : #NEWLINE# #INDENT# 'Instantiate the field.' #NEWLINE# if ( auto_add is True ) : #NEWLINE# #INDENT# auto_add = uuid . uuid4 #NEWLINE# #UNINDENT# if isinstance ( auto_add , six . text_type ) : #NEWLINE# #INDENT# ( module_name , member ) = auto_add . split ( ':' ) #NEWLINE# module = importlib . import_module ( module_name ) #NEWLINE# auto_add = getattr ( module , member ) #NEWLINE# #UNINDENT# self . _auto_add = auto_add #NEWLINE# self . _coerce_to = coerce_to #NEWLINE# if ( 'unique' not in kwargs ) : #NEWLINE# #INDENT# kwargs [ 'unique' ] = True #NEWLINE# #UNINDENT# if ( auto_add and ( 'editable' not in kwargs ) ) : #NEWLINE# #INDENT# kwargs [ 'editable' ] = False #NEWLINE# #UNINDENT# if ( kwargs . get ( 'blank' , False ) and ( not kwargs . get ( 'null' , False ) ) ) : #NEWLINE# #INDENT# raise AttributeError ( ' ' . join ( ( 'Blank UUIDs are stored as NULL. Therefore, setting' , '`blank` to True requires `null` to be True.' ) ) ) #NEWLINE# #UNINDENT# super ( UUIDField , self ) . __init__ ( ** kwargs )