django_any/forms.py
def char_field_data(field, **kwargs):
    """
    Return random value for CharField
    >>> result = any_form_field(forms.CharField(min_length=3, max_length=10))
    >>> type(result)
    <type 'str'>
    """
    min_length = kwargs.get('min_length', 1)
    max_length = kwargs.get('max_length', field.max_length or 255)    
    return xunit.any_string(min_length=field.min_length or min_length, 
                            max_length=field.max_length or max_length)
def char_field_data(field, **kwargs):
    """
    Return random value for CharField
    >>> result = any_form_field(forms.CharField(min_length=3, max_length=10))
    >>> type(result)
    <type 'str'>
    """
    min_length = kwargs.get('min_length', 1)
    max_length = kwargs.get('max_length', field.max_length or 255)    
    return xunit.any_string(min_length=field.min_length or min_length, 
                            max_length=field.max_length or max_length)
def char_field_data ( field , * * kwargs ) : min_length = kwargs . get ( 'min_length' , 1 ) max_length = kwargs . get ( 'max_length' , field . max_length or 255 ) return xunit . any_string ( min_length = field . min_length or min_length , max_length = field . max_length or max_length )
Return random value for CharField
    >>> result = any_form_field(forms.CharField(min_length=3, max_length=10))
    >>> type(result)
    <type 'str'>
Return random value for CharField >>> result = any_form_field ( forms . CharField ( min_length = 3 max_length = 10 )) >>> type ( result ) <type str >