#NEWLINE# def __init__( self , attribute = None , default = NOT_PROVIDED , null = False , blank = False , readonly = False , unique = False , help_text = None , use_in = 'all' , verbose_name = None ) : #NEWLINE# #INDENT# '\n        Sets up the field. This is generally called when the containing\n        ``Resource`` is initialized.\n\n        Optionally accepts an ``attribute``, which should be a string of\n        either an instance attribute or callable off the object during the\n        ``dehydrate`` or push data onto an object during the ``hydrate``.\n        Defaults to ``None``, meaning data will be manually accessed.\n\n        Optionally accepts a ``default``, which provides default data when the\n        object being ``dehydrated``/``hydrated`` has no data on the field.\n        Defaults to ``NOT_PROVIDED``.\n\n        Optionally accepts a ``null``, which indicated whether or not a\n        ``None`` is allowable data on the field. Defaults to ``False``.\n\n        Optionally accepts a ``blank``, which indicated whether or not\n        data may be omitted on the field. Defaults to ``False``.\n\n        Optionally accepts a ``readonly``, which indicates whether the field\n        is used during the ``hydrate`` or not. Defaults to ``False``.\n\n        Optionally accepts a ``unique``, which indicates if the field is a\n        unique identifier for the object.\n\n        Optionally accepts ``help_text``, which lets you provide a\n        human-readable description of the field exposed at the schema level.\n        Defaults to the per-Field definition.\n\n        Optionally accepts ``use_in``. This may be one of ``list``, ``detail``\n        ``all`` or a callable which accepts a ``bundle`` and returns\n        ``True`` or ``False``. Indicates wheather this field will be included\n        during dehydration of a list of objects or a single object. If ``use_in``\n        is a callable, and returns ``True``, the field will be included during\n        dehydration.\n        Defaults to ``all``.\n\n        Optionally accepts ``verbose_name``, which lets you provide a\n        more verbose name of the field exposed at the schema level.\n        ' #NEWLINE# self . instance_name = None #NEWLINE# self . _resource = None #NEWLINE# self . attribute = attribute #NEWLINE# self . _attrs = ( attribute . split ( '__' ) if ( ( attribute is not None ) and isinstance ( attribute , six . string_types ) ) else [ ] ) #NEWLINE# self . _default = default #NEWLINE# self . null = null #NEWLINE# self . blank = blank #NEWLINE# self . readonly = readonly #NEWLINE# self . unique = unique #NEWLINE# self . use_in = 'all' #NEWLINE# if ( ( use_in in [ 'all' , 'detail' , 'list' ] ) or callable ( use_in ) ) : #NEWLINE# #INDENT# self . use_in = use_in #NEWLINE# #UNINDENT# self . verbose_name = verbose_name #NEWLINE# if help_text : #NEWLINE# #INDENT# self . help_text = help_text