mango.fields.arrays module

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

Bases: mango.fields.generic.IntField

The IntArrayField can be used to set and retrieve int array 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, instance)
Raises:TypeError – When the value is not a list.
class mango.fields.arrays.DoubleArrayField(*args, **kwargs)

Bases: mango.fields.generic.DoubleField

The DoubleArrayField can be used to set and retrieve double array 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, instance)
Raises:TypeError – When the value is not a list.