django_any/models.py
def any_float_field(field, **kwargs):
    """
    Return random value for FloatField

    >>> result = any_field(models.FloatField())
    >>> type(result)
    <type 'float'>
    """
    min_value = kwargs.get('min_value', 1)
    max_value = kwargs.get('max_value', 100)
    precision = kwargs.get('precision', 3)
    return xunit.any_float(min_value=min_value, max_value=max_value, precision=precision)
def any_float_field(field, **kwargs):
    """
    Return random value for FloatField

    >>> result = any_field(models.FloatField())
    >>> type(result)
    <type 'float'>
    """
    min_value = kwargs.get('min_value', 1)
    max_value = kwargs.get('max_value', 100)
    precision = kwargs.get('precision', 3)
    return xunit.any_float(min_value=min_value, max_value=max_value, precision=precision)
def any_float_field ( field , * * kwargs ) : min_value = kwargs . get ( 'min_value' , 1 ) max_value = kwargs . get ( 'max_value' , 100 ) precision = kwargs . get ( 'precision' , 3 ) return xunit . any_float ( min_value = min_value , max_value = max_value , precision = precision )
Return random value for FloatField

    >>> result = any_field(models.FloatField())
    >>> type(result)
    <type 'float'>
Return random value for FloatField >>> result = any_field ( models . FloatField () ) >>> type ( result ) <type float >