#NEWLINE# @ any_field . register ( models . CharField ) #NEWLINE# def any_char_field( field , **kwargs ) : #NEWLINE# #INDENT# "\n    Return random value for CharField\n\n    >>> result = any_field(models.CharField(max_length=10))\n    >>> type(result)\n    <type 'str'>\n    " #NEWLINE# min_length = kwargs . get ( 'min_length' , 1 ) #NEWLINE# max_length = kwargs . get ( 'max_length' , field . max_length ) #NEWLINE# return xunit . any_string ( min_length = min_length , max_length = max_length )