django_any/models.py
def any_integer_field(field, **kwargs):
    """
    Return random value for IntegerField
    >>> result = any_field(models.IntegerField())
    >>> type(result)
    <type 'int'>
    """
    min_value = kwargs.get('min_value', -10000)
    max_value = kwargs.get('max_value', 10000)
    return xunit.any_int(min_value=min_value, max_value=max_value)
def any_integer_field(field, **kwargs):
    """
    Return random value for IntegerField
    >>> result = any_field(models.IntegerField())
    >>> type(result)
    <type 'int'>
    """
    min_value = kwargs.get('min_value', -10000)
    max_value = kwargs.get('max_value', 10000)
    return xunit.any_int(min_value=min_value, max_value=max_value)
def any_integer_field ( field , * * kwargs ) : min_value = kwargs . get ( 'min_value' , - 10000 ) max_value = kwargs . get ( 'max_value' , 10000 ) return xunit . any_int ( min_value = min_value , max_value = max_value )
Return random value for IntegerField
    >>> result = any_field(models.IntegerField())
    >>> type(result)
    <type 'int'>
Return random value for IntegerField >>> result = any_field ( models . IntegerField () ) >>> type ( result ) <type int >