mango.fields.arrays module

class mango.fields.arrays.IntegerArrayField(*args, **kwargs)

Bases: mango.fields.generic.IntegerField

The IntegerArrayField can be used to set and retrieve int multi values. If the provided value is not a list containing integer values a TypeError will be raised.

array = True
default_value = None
validate_child_is_int(value)
Raises:TypeError – When the value is not a list.
class mango.fields.arrays.FloatArrayField(*args, **kwargs)

Bases: mango.fields.generic.FloatField

The FloatArrayField can be used to set and retrieve double multi values. If the provided value is not a list containing float or integer values a TypeError will be raised.

array = True
default_value = None
validate_child_is_int_or_float(value)
Raises:TypeError – When the value is not a list.